summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_client_socket_pool_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/tcp_client_socket_pool_unittest.cc')
-rw-r--r--net/socket/tcp_client_socket_pool_unittest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/socket/tcp_client_socket_pool_unittest.cc b/net/socket/tcp_client_socket_pool_unittest.cc
index d81137d..a31afcc 100644
--- a/net/socket/tcp_client_socket_pool_unittest.cc
+++ b/net/socket/tcp_client_socket_pool_unittest.cc
@@ -18,6 +18,7 @@ namespace net {
namespace {
+const int kMaxSockets = 32;
const int kMaxSocketsPerGroup = 6;
// Note that the first and the last are the same, the first should be handled
@@ -225,7 +226,8 @@ class TCPClientSocketPoolTest : public testing::Test {
protected:
TCPClientSocketPoolTest()
: host_resolver_(new MockHostResolver),
- pool_(new TCPClientSocketPool(kMaxSocketsPerGroup,
+ pool_(new TCPClientSocketPool(kMaxSockets,
+ kMaxSocketsPerGroup,
host_resolver_,
&client_socket_factory_)) {
}
@@ -618,6 +620,7 @@ TEST_F(TCPClientSocketPoolTest, FailingActiveRequestWithPendingRequests) {
MockClientSocketFactory::MOCK_PENDING_FAILING_CLIENT_SOCKET);
scoped_ptr<TestSocketRequest> reqs[kMaxSocketsPerGroup * 2 + 1];
+ ASSERT_LE(static_cast<int>(arraysize(reqs)), kMaxSockets);
// Queue up all the requests