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

Unified Diff: net/socket/client_socket_pool_base_unittest.cc

Issue 8801004: base::Bind: Convert StreamSocket::Connect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes 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/http/http_proxy_client_socket.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f8a21fbeff59da863ead9843689aa76b2efea55c..d318dd6fab48fc6e05dbde9468f492d9e8f253c3 100644
--- a/net/socket/client_socket_pool_base_unittest.cc
+++ b/net/socket/client_socket_pool_base_unittest.cc
@@ -64,12 +64,15 @@ class MockClientSocket : public StreamSocket {
virtual bool SetReceiveBufferSize(int32 size) { return true; }
virtual bool SetSendBufferSize(int32 size) { return true; }
- // StreamSocket methods:
-
+ // StreamSocket implementation.
virtual int Connect(OldCompletionCallback* callback) {
connected_ = true;
return OK;
}
+ virtual int Connect(const net::CompletionCallback& callback) {
+ connected_ = true;
+ return OK;
+ }
virtual void Disconnect() { connected_ = false; }
virtual bool IsConnected() const { return connected_; }
« no previous file with comments | « net/http/http_proxy_client_socket.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698