diff options
Diffstat (limited to 'net/socket/tcp_client_socket_unittest.cc')
-rw-r--r-- | net/socket/tcp_client_socket_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/tcp_client_socket_unittest.cc b/net/socket/tcp_client_socket_unittest.cc index 519d938..91b0e57 100644 --- a/net/socket/tcp_client_socket_unittest.cc +++ b/net/socket/tcp_client_socket_unittest.cc @@ -86,9 +86,9 @@ void TCPClientSocketTest::SetUp() { listen_port_ = port; AddressList addr; - HostResolver resolver; + scoped_refptr<HostResolver> resolver(new HostResolver); HostResolver::RequestInfo info("localhost", listen_port_); - int rv = resolver.Resolve(info, &addr, NULL, NULL); + int rv = resolver->Resolve(info, &addr, NULL, NULL); CHECK(rv == OK); sock_.reset(new TCPClientSocket(addr)); } |