| Index: net/socket/tcp_client_socket_pool_unittest.cc
|
| diff --git a/net/socket/tcp_client_socket_pool_unittest.cc b/net/socket/tcp_client_socket_pool_unittest.cc
|
| index d81137deff0820adc48e27041e9ac78dbd1af5a0..a31afccdef191585c177ad87d8a66071ce79cb22 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
|
|
|
|
|