Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/webrtc_audio_device_test.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc
diff --git a/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc b/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc
index 9c66d11703222f93957efa683652a7903e1b5c8b..0c612eb2ab3183a060be3786c6091847791f1e28 100644
--- a/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc
+++ b/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc
@@ -150,7 +150,7 @@ class FetcherClient {
}
TestCompletionCallback callback_;
- scoped_refptr<URLRequestContext> url_request_context_;
+ scoped_ptr<URLRequestContext> url_request_context_;
scoped_ptr<MockDhcpProxyScriptAdapterFetcher> fetcher_;
string16 pac_text_;
};
@@ -278,11 +278,10 @@ TEST(DhcpProxyScriptAdapterFetcher, MockDhcpRealFetch) {
GURL configured_url = test_server.GetURL("files/downloadable.pac");
FetcherClient client;
- scoped_refptr<URLRequestContext> url_request_context(
- new TestURLRequestContext());
+ TestURLRequestContext url_request_context;
client.fetcher_.reset(
new MockDhcpRealFetchProxyScriptAdapterFetcher(
- url_request_context.get()));
+ &url_request_context));
client.fetcher_->configured_url_ = configured_url.spec();
client.RunTest();
client.WaitForResult(OK);
« no previous file with comments | « content/test/webrtc_audio_device_test.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698