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

Unified Diff: net/http/http_network_transaction_spdy2_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_spdy2_unittest.cc
diff --git a/net/http/http_network_transaction_spdy2_unittest.cc b/net/http/http_network_transaction_spdy2_unittest.cc
index 0912dee27aad113fe6bda4aea5fc36be4b433e83..47c951ea741c27883ab6188a6b8089db9c2a92d5 100644
--- a/net/http/http_network_transaction_spdy2_unittest.cc
+++ b/net/http/http_network_transaction_spdy2_unittest.cc
@@ -9389,14 +9389,20 @@ TEST_F(HttpNetworkTransactionSpdy2Test, SendPipelineEvictionFallback) {
TEST_F(HttpNetworkTransactionSpdy2Test, 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;
@@ -9553,10 +9559,12 @@ TEST_F(HttpNetworkTransactionSpdy2Test, 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_spdy21_unittest.cc ('k') | net/http/http_network_transaction_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698