From 94a0d3d91b7200e66a4d23bb49b38cae7e74f7db Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Sat, 27 Jun 2009 01:50:14 +0000 Subject: Make net::HostResolver refcounted. This way it can be properly shared between the url request contexts, and the dns prefetcher, and dns observer. BUG=http://crbug.com/14664 TEST=existing unit tests. Review URL: http://codereview.chromium.org/149053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19451 0039d316-1c4b-4281-b951-d872f2087c98 --- net/ftp/ftp_network_transaction_unittest.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net/ftp/ftp_network_transaction_unittest.cc') diff --git a/net/ftp/ftp_network_transaction_unittest.cc b/net/ftp/ftp_network_transaction_unittest.cc index b45156b..d381b0b 100644 --- a/net/ftp/ftp_network_transaction_unittest.cc +++ b/net/ftp/ftp_network_transaction_unittest.cc @@ -224,7 +224,7 @@ class FtpMockControlSocketFileDownloadRetrFail class FtpNetworkTransactionTest : public PlatformTest { public: FtpNetworkTransactionTest() - : session_(new FtpNetworkSession(&resolver_)), + : session_(new FtpNetworkSession(new HostResolver)), transaction_(session_.get(), &mock_socket_factory_) { } @@ -253,7 +253,6 @@ class FtpNetworkTransactionTest : public PlatformTest { EXPECT_EQ(FtpMockControlSocket::QUIT, ctrl_socket->state()); } - HostResolver resolver_; scoped_refptr session_; MockClientSocketFactory mock_socket_factory_; FtpNetworkTransaction transaction_; -- cgit v1.1