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

Unified Diff: net/socket/ssl_client_socket_pool_unittest.cc

Issue 7349023: Changed SPDY's ip connection pooling logic to only add the used IP, (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
Index: net/socket/ssl_client_socket_pool_unittest.cc
===================================================================
--- net/socket/ssl_client_socket_pool_unittest.cc (revision 92397)
+++ net/socket/ssl_client_socket_pool_unittest.cc (working copy)
@@ -30,8 +30,6 @@
namespace net {
-namespace {
willchan no longer on Chromium 2011/07/17 01:23:45 If you use the SpdySessionPoolPeer, then you can r
ramant (doing other things) 2011/07/17 08:12:30 Done.
-
const int kMaxSockets = 32;
const int kMaxSocketsPerGroup = 6;
@@ -657,8 +655,8 @@
HostPortProxyPair pair;
} test_hosts[] = {
{ "www.webkit.org", "192.168.0.1,192.168.0.5" },
- { "code.google.com", "192.168.0.2,192.168.0.3,192.168.0.5" },
- { "js.webkit.org", "192.168.0.4,192.168.0.5" },
+ { "code.google.com", "192.168.0.2,192.168.0.3,192.168.0.1" },
+ { "js.webkit.org", "192.168.0.4,192.168.0.1" },
};
host_resolver_.set_synchronous_mode(true);
@@ -712,6 +710,8 @@
EXPECT_EQ(SSLClientSocket::NextProtoFromString(proto),
SSLClientSocket::kProtoSPDY2);
+ session_->spdy_session_pool()->AddAliases(test_hosts[0].pair);
willchan no longer on Chromium 2011/07/17 01:23:45 Rather than doing this, you should probably just u
ramant (doing other things) 2011/07/17 08:12:30 Done.
+
scoped_refptr<SpdySession> spdy_session;
rv = session_->spdy_session_pool()->GetSpdySessionFromSocket(
test_hosts[0].pair, handle.release(), BoundNetLog(), 0,
@@ -727,6 +727,4 @@
// It would be nice to also test the timeouts in SSLClientSocketPool.
-} // namespace
-
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698