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

Unified Diff: net/http/http_network_transaction_spdy3_unittest.cc

Issue 9764003: Increase number of max sockets per group for WebSocket connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 9 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/http/http_network_transaction_spdy3_unittest.cc
diff --git a/net/http/http_network_transaction_spdy3_unittest.cc b/net/http/http_network_transaction_spdy3_unittest.cc
index a34158a067d7de3f7679038644ed749b27ff4e98..ee802459376cc01476a252003d86db63ace0de02 100644
--- a/net/http/http_network_transaction_spdy3_unittest.cc
+++ b/net/http/http_network_transaction_spdy3_unittest.cc
@@ -9387,14 +9387,20 @@ TEST_F(HttpNetworkTransactionSpdy3Test, SendPipelineEvictionFallback) {
TEST_F(HttpNetworkTransactionSpdy3Test, CloseIdleSpdySessionToOpenNewOne) {
HttpStreamFactory::SetNextProtos(SpdyNextProtos());
int old_max_sockets_per_group =
- ClientSocketPoolManager::max_sockets_per_group();
+ ClientSocketPoolManager::max_sockets_per_group(
+ HttpNetworkSession::NORMAL_SOCKET_POOL);
int old_max_sockets_per_proxy_server =
- ClientSocketPoolManager::max_sockets_per_proxy_server();
+ ClientSocketPoolManager::max_sockets_per_proxy_server(
+ HttpNetworkSession::NORMAL_SOCKET_POOL);
int old_max_sockets_per_pool =
- ClientSocketPoolManager::max_sockets_per_pool();
- ClientSocketPoolManager::set_max_sockets_per_group(1);
- ClientSocketPoolManager::set_max_sockets_per_proxy_server(1);
- ClientSocketPoolManager::set_max_sockets_per_pool(1);
+ ClientSocketPoolManager::max_sockets_per_pool(
+ HttpNetworkSession::NORMAL_SOCKET_POOL);
+ ClientSocketPoolManager::set_max_sockets_per_group(
+ HttpNetworkSession::NORMAL_SOCKET_POOL, 1);
+ ClientSocketPoolManager::set_max_sockets_per_proxy_server(
+ HttpNetworkSession::NORMAL_SOCKET_POOL, 1);
+ ClientSocketPoolManager::set_max_sockets_per_pool(
+ HttpNetworkSession::NORMAL_SOCKET_POOL, 1);
// Use two different hosts with different IPs so they don't get pooled.
SessionDependencies session_deps;
@@ -9551,10 +9557,12 @@ TEST_F(HttpNetworkTransactionSpdy3Test, CloseIdleSpdySessionToOpenNewOne) {
session->spdy_session_pool()->HasSession(host_port_proxy_pair_b));
HttpStreamFactory::SetNextProtos(std::vector<std::string>());
- ClientSocketPoolManager::set_max_sockets_per_pool(old_max_sockets_per_pool);
+ ClientSocketPoolManager::set_max_sockets_per_pool(
+ HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_pool);
ClientSocketPoolManager::set_max_sockets_per_proxy_server(
- old_max_sockets_per_proxy_server);
- ClientSocketPoolManager::set_max_sockets_per_group(old_max_sockets_per_group);
+ HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_proxy_server);
+ ClientSocketPoolManager::set_max_sockets_per_group(
+ HttpNetworkSession::NORMAL_SOCKET_POOL, old_max_sockets_per_group);
}
} // namespace net
« no previous file with comments | « net/http/http_network_transaction_spdy2_unittest.cc ('k') | net/http/http_pipelined_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698