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

Unified Diff: net/spdy/spdy_test_util.h

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
« net/spdy/spdy_session_pool.cc ('K') | « net/spdy/spdy_session_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util.h
===================================================================
--- net/spdy/spdy_test_util.h (revision 92397)
+++ net/spdy/spdy_test_util.h (working copy)
@@ -8,6 +8,8 @@
#include "base/basictypes.h"
#include "net/base/cert_verifier.h"
+#include "net/base/host_port_pair.h"
+#include "net/base/ip_endpoint.h"
#include "net/base/mock_host_resolver.h"
#include "net/base/request_priority.h"
#include "net/base/ssl_config_service_defaults.h"
@@ -376,6 +378,10 @@
explicit SpdySessionPoolPeer(SpdySessionPool* pool)
: pool_(pool) {}
+ void AddAlias(const IPEndPoint& endpoint, const HostPortProxyPair& pair) {
+ pool_->AddAlias(endpoint, pair);
+ }
+
void RemoveSpdySession(const scoped_refptr<SpdySession>& session) {
pool_->Remove(session);
}
« net/spdy/spdy_session_pool.cc ('K') | « net/spdy/spdy_session_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698