| Index: net/socket/client_socket_pool_base_unittest.cc
|
| diff --git a/net/socket/client_socket_pool_base_unittest.cc b/net/socket/client_socket_pool_base_unittest.cc
|
| index c4a28459a1ebd717cb97cdac07e63fa7e86659e7..c7cbda1562f00cc2e417cb25b4322e92dfdcf193 100644
|
| --- a/net/socket/client_socket_pool_base_unittest.cc
|
| +++ b/net/socket/client_socket_pool_base_unittest.cc
|
| @@ -1750,6 +1750,22 @@ TEST_F(ClientSocketPoolBaseTest,
|
| entries, 2, NetLog::TYPE_SOCKET_POOL));
|
| }
|
|
|
| +// Check that an async ConnectJob failure does not result in creation of a new
|
| +// ConnectJob when there's another pending request also waiting on its own
|
| +// ConnectJob. See http://crbug.com/463960.
|
| +TEST_F(ClientSocketPoolBaseTest, AsyncFailureWithPendingRequestWithJob) {
|
| + CreatePool(2, 2);
|
| + connect_job_factory_->set_job_type(TestConnectJob::kMockPendingFailingJob);
|
| +
|
| + EXPECT_EQ(ERR_IO_PENDING, StartRequest("a", DEFAULT_PRIORITY));
|
| + EXPECT_EQ(ERR_IO_PENDING, StartRequest("a", DEFAULT_PRIORITY));
|
| +
|
| + EXPECT_EQ(ERR_CONNECTION_FAILED, request(0)->WaitForResult());
|
| + EXPECT_EQ(ERR_CONNECTION_FAILED, request(1)->WaitForResult());
|
| +
|
| + EXPECT_EQ(2, client_socket_factory_.allocation_count());
|
| +}
|
| +
|
| TEST_F(ClientSocketPoolBaseTest, TwoRequestsCancelOne) {
|
| // TODO(eroman): Add back the log expectations! Removed them because the
|
| // ordering is difficult, and some may fire during destructor.
|
|
|