| 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);
|
|
|