diff options
Diffstat (limited to 'net/socket/ssl_test_util.cc')
-rw-r--r-- | net/socket/ssl_test_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/ssl_test_util.cc b/net/socket/ssl_test_util.cc index f615662..101cbf5 100644 --- a/net/socket/ssl_test_util.cc +++ b/net/socket/ssl_test_util.cc @@ -246,9 +246,9 @@ bool TestServerLauncher::WaitToStart(const std::string& host_name, int port) { // Verify that the webserver is actually started. // Otherwise tests can fail if they run faster than Python can start. net::AddressList addr; - net::HostResolver resolver; + scoped_refptr<net::HostResolver> resolver(new net::HostResolver); net::HostResolver::RequestInfo info(host_name, port); - int rv = resolver.Resolve(info, &addr, NULL, NULL); + int rv = resolver->Resolve(info, &addr, NULL, NULL); if (rv != net::OK) return false; |