| Index: net/proxy/proxy_script_decider_unittest.cc
|
| diff --git a/net/proxy/proxy_script_decider_unittest.cc b/net/proxy/proxy_script_decider_unittest.cc
|
| index b30243d33155562c2f2a46b24a110adf6e34b395..383c15975eed3da1d78a49833d884fd190fc15f8 100644
|
| --- a/net/proxy/proxy_script_decider_unittest.cc
|
| +++ b/net/proxy/proxy_script_decider_unittest.cc
|
| @@ -188,14 +188,14 @@ TEST(ProxyScriptDeciderTest, CustomPacSucceeds) {
|
| Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac");
|
|
|
| TestCompletionCallback callback;
|
| - CapturingNetLog log;
|
| + TestNetLog log;
|
| ProxyScriptDecider decider(&fetcher, &dhcp_fetcher, &log);
|
| EXPECT_EQ(OK, decider.Start(
|
| config, base::TimeDelta(), true, callback.callback()));
|
| EXPECT_EQ(rule.text(), decider.script_data()->utf16());
|
|
|
| // Check the NetLog was filled correctly.
|
| - CapturingNetLog::CapturedEntryList entries;
|
| + TestNetLog::CapturedEntryList entries;
|
| log.GetEntries(&entries);
|
|
|
| EXPECT_EQ(4u, entries.size());
|
| @@ -224,7 +224,7 @@ TEST(ProxyScriptDeciderTest, CustomPacFails1) {
|
| rules.AddFailDownloadRule("http://custom/proxy.pac");
|
|
|
| TestCompletionCallback callback;
|
| - CapturingNetLog log;
|
| + TestNetLog log;
|
| ProxyScriptDecider decider(&fetcher, &dhcp_fetcher, &log);
|
| EXPECT_EQ(kFailedDownloading,
|
| decider.Start(config, base::TimeDelta(), true,
|
| @@ -232,7 +232,7 @@ TEST(ProxyScriptDeciderTest, CustomPacFails1) {
|
| EXPECT_EQ(NULL, decider.script_data());
|
|
|
| // Check the NetLog was filled correctly.
|
| - CapturingNetLog::CapturedEntryList entries;
|
| + TestNetLog::CapturedEntryList entries;
|
| log.GetEntries(&entries);
|
|
|
| EXPECT_EQ(4u, entries.size());
|
| @@ -477,7 +477,7 @@ TEST(ProxyScriptDeciderTest, AutodetectFailCustomSuccess2) {
|
| Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac");
|
|
|
| TestCompletionCallback callback;
|
| - CapturingNetLog log;
|
| + TestNetLog log;
|
|
|
| ProxyScriptDecider decider(&fetcher, &dhcp_fetcher, &log);
|
| EXPECT_EQ(OK, decider.Start(config, base::TimeDelta(),
|
| @@ -492,7 +492,7 @@ TEST(ProxyScriptDeciderTest, AutodetectFailCustomSuccess2) {
|
| // Check the NetLog was filled correctly.
|
| // (Note that various states are repeated since both WPAD and custom
|
| // PAC scripts are tried).
|
| - CapturingNetLog::CapturedEntryList entries;
|
| + TestNetLog::CapturedEntryList entries;
|
| log.GetEntries(&entries);
|
|
|
| EXPECT_EQ(10u, entries.size());
|
| @@ -582,7 +582,7 @@ TEST(ProxyScriptDeciderTest, CustomPacFails1_WithPositiveDelay) {
|
| rules.AddFailDownloadRule("http://custom/proxy.pac");
|
|
|
| TestCompletionCallback callback;
|
| - CapturingNetLog log;
|
| + TestNetLog log;
|
| ProxyScriptDecider decider(&fetcher, &dhcp_fetcher, &log);
|
| EXPECT_EQ(ERR_IO_PENDING,
|
| decider.Start(config, base::TimeDelta::FromMilliseconds(1),
|
| @@ -592,7 +592,7 @@ TEST(ProxyScriptDeciderTest, CustomPacFails1_WithPositiveDelay) {
|
| EXPECT_EQ(NULL, decider.script_data());
|
|
|
| // Check the NetLog was filled correctly.
|
| - CapturingNetLog::CapturedEntryList entries;
|
| + TestNetLog::CapturedEntryList entries;
|
| log.GetEntries(&entries);
|
|
|
| EXPECT_EQ(6u, entries.size());
|
| @@ -624,7 +624,7 @@ TEST(ProxyScriptDeciderTest, CustomPacFails1_WithNegativeDelay) {
|
| rules.AddFailDownloadRule("http://custom/proxy.pac");
|
|
|
| TestCompletionCallback callback;
|
| - CapturingNetLog log;
|
| + TestNetLog log;
|
| ProxyScriptDecider decider(&fetcher, &dhcp_fetcher, &log);
|
| EXPECT_EQ(kFailedDownloading,
|
| decider.Start(config, base::TimeDelta::FromSeconds(-5),
|
| @@ -632,7 +632,7 @@ TEST(ProxyScriptDeciderTest, CustomPacFails1_WithNegativeDelay) {
|
| EXPECT_EQ(NULL, decider.script_data());
|
|
|
| // Check the NetLog was filled correctly.
|
| - CapturingNetLog::CapturedEntryList entries;
|
| + TestNetLog::CapturedEntryList entries;
|
| log.GetEntries(&entries);
|
|
|
| EXPECT_EQ(4u, entries.size());
|
|
|