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

Unified Diff: net/socket/client_socket_pool_base_unittest.cc

Issue 8831001: base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: net/socket/client_socket_pool_base_unittest.cc
diff --git a/net/socket/client_socket_pool_base_unittest.cc b/net/socket/client_socket_pool_base_unittest.cc
index fdbc63f139f0aaf39f14cc9b92317d65d2d2d053..601a293f3cc972c3afa6e0c61b578155d3b8fbda 100644
--- a/net/socket/client_socket_pool_base_unittest.cc
+++ b/net/socket/client_socket_pool_base_unittest.cc
@@ -66,6 +66,11 @@ class MockClientSocket : public StreamSocket {
was_used_to_convey_data_ = true;
return len;
}
+ virtual int Write(
+ IOBuffer* /* buf */, int len, const CompletionCallback& /* callback */) {
+ was_used_to_convey_data_ = true;
+ return len;
+ }
virtual bool SetReceiveBufferSize(int32 size) { return true; }
virtual bool SetSendBufferSize(int32 size) { return true; }

Powered by Google App Engine
This is Rietveld 408576698