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

Unified Diff: net/base/client_socket_pool_unittest.cc

Issue 21501: If an idle socket has received data unexpectedly, we... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final upload before checkin. Created 11 years, 10 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/base/client_socket_pool.cc ('k') | net/base/ssl_client_socket_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/client_socket_pool_unittest.cc
===================================================================
--- net/base/client_socket_pool_unittest.cc (revision 10055)
+++ net/base/client_socket_pool_unittest.cc (working copy)
@@ -35,6 +35,9 @@
virtual bool IsConnected() const {
return connected_;
}
+ virtual bool IsConnectedAndIdle() const {
+ return connected_;
+ }
// Socket methods:
virtual int Read(char* buf, int buf_len,
@@ -56,7 +59,7 @@
class TestSocketRequest : public CallbackRunner< Tuple1<int> > {
public:
- TestSocketRequest(net::ClientSocketPool* pool) : handle(pool) {}
+ explicit TestSocketRequest(net::ClientSocketPool* pool) : handle(pool) {}
net::ClientSocketHandle handle;
« no previous file with comments | « net/base/client_socket_pool.cc ('k') | net/base/ssl_client_socket_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698