Index: net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc |
diff --git a/net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc b/net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc |
index 2c29120ac8b0cdca4f036e62b53c77a7701632c0..a9ed9c3b1b320d51ce5ee90e2805ca8b2a6ef446 100644 |
--- a/net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc |
+++ b/net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc |
@@ -12,9 +12,7 @@ namespace { |
TEST(DhcpProxyScriptFetcherFactoryTest, DoNothingWhenDisabled) { |
DhcpProxyScriptFetcherFactory factory; |
- // Non-do-nothing fetchers would DCHECK on the NULL pointer. |
- DhcpProxyScriptFetcher* fetcher = factory.Create(NULL); |
- ASSERT_TRUE(fetcher); |
+ scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(NULL)); |
EXPECT_EQ("", fetcher->GetFetcherName()); |
} |
@@ -24,8 +22,7 @@ TEST(DhcpProxyScriptFetcherFactoryTest, WindowsFetcherOnWindows) { |
factory.set_enabled(true); |
scoped_refptr<TestURLRequestContext> context(new TestURLRequestContext()); |
- DhcpProxyScriptFetcher* fetcher = factory.Create(context); |
- ASSERT_TRUE(fetcher); |
+ scoped_ptr<DhcpProxyScriptFetcher> fetcher(factory.Create(context)); |
EXPECT_EQ("win", fetcher->GetFetcherName()); |
} |
#endif // defined(OS_WIN) |