Index: net/socket/client_socket_pool_base_unittest.cc |
diff --git a/net/socket/client_socket_pool_base_unittest.cc b/net/socket/client_socket_pool_base_unittest.cc |
index 391fb61e6d0557b28932f96059d13bf8db2b30ff..c89ea2ead7830bc7b6b8572c47942d124e451ca8 100644 |
--- a/net/socket/client_socket_pool_base_unittest.cc |
+++ b/net/socket/client_socket_pool_base_unittest.cc |
@@ -721,7 +721,7 @@ class ClientSocketPoolBaseTest : public testing::Test { |
ScopedVector<TestSocketRequest>* requests() { return test_base_.requests(); } |
size_t completion_count() const { return test_base_.completion_count(); } |
- CapturingNetLog net_log_; |
+ TestNetLog net_log_; |
bool connect_backup_jobs_enabled_; |
bool cleanup_timer_enabled_; |
MockClientSocketFactory client_socket_factory_; |
@@ -754,7 +754,7 @@ TEST_F(ClientSocketPoolBaseTest, ConnectJob_NoTimeoutOnSynchronousCompletion) { |
TEST_F(ClientSocketPoolBaseTest, ConnectJob_TimedOut) { |
TestConnectJobDelegate delegate; |
ClientSocketHandle ignored; |
- CapturingNetLog log; |
+ TestNetLog log; |
TestClientSocketPoolBase::Request request( |
&ignored, CompletionCallback(), DEFAULT_PRIORITY, |
@@ -773,7 +773,7 @@ TEST_F(ClientSocketPoolBaseTest, ConnectJob_TimedOut) { |
base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(1)); |
EXPECT_EQ(ERR_TIMED_OUT, delegate.WaitForResult()); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_EQ(6u, entries.size()); |
@@ -815,7 +815,7 @@ TEST_F(ClientSocketPoolBaseTest, BasicSynchronous) { |
handle.Reset(); |
TestLoadTimingInfoNotConnected(handle); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_EQ(4u, entries.size()); |
@@ -856,7 +856,7 @@ TEST_F(ClientSocketPoolBaseTest, InitConnectionFailure) { |
EXPECT_TRUE(handle.ssl_error_response_info().headers.get() == NULL); |
TestLoadTimingInfoNotConnected(handle); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_EQ(3u, entries.size()); |
@@ -1691,7 +1691,7 @@ TEST_F(ClientSocketPoolBaseTest, BasicAsynchronous) { |
handle.Reset(); |
TestLoadTimingInfoNotConnected(handle); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_EQ(4u, entries.size()); |
@@ -1731,7 +1731,7 @@ TEST_F(ClientSocketPoolBaseTest, |
EXPECT_FALSE(handle.is_ssl_error()); |
EXPECT_TRUE(handle.ssl_error_response_info().headers.get() == NULL); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_EQ(3u, entries.size()); |
@@ -2230,7 +2230,7 @@ TEST_F(ClientSocketPoolBaseTest, DisableCleanupTimerReuse) { |
EXPECT_EQ(0, pool_->IdleSocketCountInGroup("a")); |
EXPECT_EQ(1, pool_->NumActiveSocketsInGroup("a")); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_TRUE(LogContainsEntryWithType( |
entries, 1, NetLog::TYPE_SOCKET_POOL_REUSED_AN_EXISTING_SOCKET)); |
@@ -2312,7 +2312,7 @@ TEST_F(ClientSocketPoolBaseTest, DisableCleanupTimerNoReuse) { |
EXPECT_EQ(0, pool_->IdleSocketCountInGroup("a")); |
EXPECT_EQ(1, pool_->NumActiveSocketsInGroup("a")); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_FALSE(LogContainsEntryWithType( |
entries, 1, NetLog::TYPE_SOCKET_POOL_REUSED_AN_EXISTING_SOCKET)); |
@@ -2384,7 +2384,7 @@ TEST_F(ClientSocketPoolBaseTest, CleanupTimedOutIdleSockets) { |
EXPECT_EQ(OK, rv); |
EXPECT_TRUE(handle.is_reused()); |
- CapturingNetLog::CapturedEntryList entries; |
+ TestNetLog::CapturedEntryList entries; |
log.GetEntries(&entries); |
EXPECT_TRUE(LogContainsEntryWithType( |
entries, 1, NetLog::TYPE_SOCKET_POOL_REUSED_AN_EXISTING_SOCKET)); |