diff options
Diffstat (limited to 'net/socket/tcp_pinger_unittest.cc')
-rw-r--r-- | net/socket/tcp_pinger_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/tcp_pinger_unittest.cc b/net/socket/tcp_pinger_unittest.cc index c807007..b1e678f 100644 --- a/net/socket/tcp_pinger_unittest.cc +++ b/net/socket/tcp_pinger_unittest.cc @@ -65,7 +65,7 @@ void TCPPingerTest::SetUp() { TEST_F(TCPPingerTest, Ping) { net::AddressList addr; - scoped_refptr<net::HostResolver> resolver(new net::HostResolver); + scoped_refptr<net::HostResolver> resolver(net::CreateSystemHostResolver()); net::HostResolver::RequestInfo info("localhost", listen_port_); int rv = resolver->Resolve(info, &addr, NULL, NULL); @@ -78,7 +78,7 @@ TEST_F(TCPPingerTest, Ping) { TEST_F(TCPPingerTest, PingFail) { net::AddressList addr; - scoped_refptr<net::HostResolver> resolver(new net::HostResolver); + scoped_refptr<net::HostResolver> resolver(net::CreateSystemHostResolver()); // "Kill" "server" listen_sock_ = NULL; |