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

Unified Diff: net/socket/transport_client_socket_pool_unittest.cc

Issue 8831001: base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix alignment. Created 9 years 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/tcp_client_socket_win.cc ('k') | net/socket/web_socket_server_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/transport_client_socket_pool_unittest.cc
diff --git a/net/socket/transport_client_socket_pool_unittest.cc b/net/socket/transport_client_socket_pool_unittest.cc
index 56b1fa9c9554701757017487f09fa9546bf0f21c..bfd330aa0f2e7e1111f4542c610c72f8a4f8ec04 100644
--- a/net/socket/transport_client_socket_pool_unittest.cc
+++ b/net/socket/transport_client_socket_pool_unittest.cc
@@ -107,6 +107,10 @@ class MockClientSocket : public StreamSocket {
OldCompletionCallback* callback) {
return ERR_FAILED;
}
+ virtual int Write(IOBuffer* buf, int buf_len,
+ const CompletionCallback& callback) {
+ return ERR_FAILED;
+ }
virtual bool SetReceiveBufferSize(int32 size) { return true; }
virtual bool SetSendBufferSize(int32 size) { return true; }
@@ -169,6 +173,10 @@ class MockFailingClientSocket : public StreamSocket {
OldCompletionCallback* callback) {
return ERR_FAILED;
}
+ virtual int Write(IOBuffer* buf, int buf_len,
+ const CompletionCallback& callback) {
+ return ERR_FAILED;
+ }
virtual bool SetReceiveBufferSize(int32 size) { return true; }
virtual bool SetSendBufferSize(int32 size) { return true; }
@@ -260,6 +268,10 @@ class MockPendingClientSocket : public StreamSocket {
OldCompletionCallback* callback) {
return ERR_FAILED;
}
+ virtual int Write(IOBuffer* buf, int buf_len,
+ const CompletionCallback& callback) {
+ return ERR_FAILED;
+ }
virtual bool SetReceiveBufferSize(int32 size) { return true; }
virtual bool SetSendBufferSize(int32 size) { return true; }
« no previous file with comments | « net/socket/tcp_client_socket_win.cc ('k') | net/socket/web_socket_server_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698