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 |