Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1353)

Unified Diff: remoting/protocol/fake_stream_socket.h

Issue 1080593003: Pass in a non-null CertVerifier into SSLClientSocket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@boringnss
Patch Set: fix comment typo Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | remoting/protocol/fake_stream_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_stream_socket.h
diff --git a/remoting/protocol/fake_stream_socket.h b/remoting/protocol/fake_stream_socket.h
index cb17e8924938a653edb0c0859bb333c38e57d6a7..ac20e3860d776a660a1308c2c65f60fb3858fee5 100644
--- a/remoting/protocol/fake_stream_socket.h
+++ b/remoting/protocol/fake_stream_socket.h
@@ -45,14 +45,17 @@ class FakeStreamSocket : public net::StreamSocket {
// Enables asynchronous Write().
void set_async_write(bool async_write) { async_write_ = async_write; }
- // Set error codes for the next Read() and Write() calls. Once returned the
- // values are automatically reset to net::OK .
- void set_next_read_error(int error) { next_read_error_ = error; }
+ // Set error codes for the next Write() call. Once returned the
+ // value is automatically reset to net::OK .
void set_next_write_error(int error) { next_write_error_ = error; }
// Appends |data| to the read buffer.
void AppendInputData(const std::string& data);
+ // Causes Read() to fail with |error| once the read buffer is exhausted. If
+ // there is a currently pending Read, it is interrupted.
+ void AppendReadError(int error);
+
// Pairs the socket with |peer_socket|. Deleting either of the paired sockets
// unpairs them.
void PairWith(FakeStreamSocket* peer_socket);
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | remoting/protocol/fake_stream_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698