| Index: net/socket/ssl_client_socket_pool_unittest.cc
|
| diff --git a/net/socket/ssl_client_socket_pool_unittest.cc b/net/socket/ssl_client_socket_pool_unittest.cc
|
| index c69900bf62b4b3d0b7e2bfa921e1b0ea73a55507..39e5991d8209262a663facc56c37afb04b0e3326 100644
|
| --- a/net/socket/ssl_client_socket_pool_unittest.cc
|
| +++ b/net/socket/ssl_client_socket_pool_unittest.cc
|
| @@ -828,6 +828,7 @@ TEST_P(SSLClientSocketPoolTest, IPPooling) {
|
| };
|
|
|
| host_resolver_.set_synchronous_mode(true);
|
| + std::unique_ptr<HostResolver::Request> req[arraysize(test_hosts)];
|
| for (size_t i = 0; i < arraysize(test_hosts); i++) {
|
| host_resolver_.rules()->AddIPLiteralRule(
|
| test_hosts[i].name, test_hosts[i].iplist, std::string());
|
| @@ -835,12 +836,8 @@ TEST_P(SSLClientSocketPoolTest, IPPooling) {
|
| // This test requires that the HostResolver cache be populated. Normal
|
| // code would have done this already, but we do it manually.
|
| HostResolver::RequestInfo info(HostPortPair(test_hosts[i].name, kTestPort));
|
| - host_resolver_.Resolve(info,
|
| - DEFAULT_PRIORITY,
|
| - &test_hosts[i].addresses,
|
| - CompletionCallback(),
|
| - NULL,
|
| - BoundNetLog());
|
| + host_resolver_.Resolve(info, DEFAULT_PRIORITY, &test_hosts[i].addresses,
|
| + CompletionCallback(), &req[i], BoundNetLog());
|
|
|
| // Setup a SpdySessionKey
|
| test_hosts[i].key = SpdySessionKey(
|
| @@ -887,6 +884,7 @@ void SSLClientSocketPoolTest::TestIPPoolingDisabled(
|
| };
|
|
|
| TestCompletionCallback callback;
|
| + std::unique_ptr<HostResolver::Request> req[arraysize(test_hosts)];
|
| int rv;
|
| for (size_t i = 0; i < arraysize(test_hosts); i++) {
|
| host_resolver_.rules()->AddIPLiteralRule(
|
| @@ -895,12 +893,9 @@ void SSLClientSocketPoolTest::TestIPPoolingDisabled(
|
| // This test requires that the HostResolver cache be populated. Normal
|
| // code would have done this already, but we do it manually.
|
| HostResolver::RequestInfo info(HostPortPair(test_hosts[i].name, kTestPort));
|
| - rv = host_resolver_.Resolve(info,
|
| - DEFAULT_PRIORITY,
|
| - &test_hosts[i].addresses,
|
| - callback.callback(),
|
| - NULL,
|
| - BoundNetLog());
|
| + rv =
|
| + host_resolver_.Resolve(info, DEFAULT_PRIORITY, &test_hosts[i].addresses,
|
| + callback.callback(), &req[i], BoundNetLog());
|
| EXPECT_THAT(callback.GetResult(rv), IsOk());
|
|
|
| // Setup a SpdySessionKey
|
|
|