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

Unified Diff: net/proxy/proxy_script_fetcher_impl_unittest.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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 | « net/proxy/multi_threaded_proxy_resolver.cc ('k') | net/proxy/proxy_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_script_fetcher_impl_unittest.cc
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
index f9828ee961a46c5daa651bf72a2ba6a8c9df7473..2642f4dc1d8baee3384545af6d97b78b5d79af7d 100644
--- a/net/proxy/proxy_script_fetcher_impl_unittest.cc
+++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc
@@ -78,7 +78,7 @@ class ProxyScriptFetcherImplTest : public PlatformTest {
};
TEST_F(ProxyScriptFetcherImplTest, FileUrl) {
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -107,7 +107,7 @@ TEST_F(ProxyScriptFetcherImplTest, FileUrl) {
TEST_F(ProxyScriptFetcherImplTest, HttpMimeType) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -143,7 +143,7 @@ TEST_F(ProxyScriptFetcherImplTest, HttpMimeType) {
TEST_F(ProxyScriptFetcherImplTest, HttpStatusCode) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -170,7 +170,7 @@ TEST_F(ProxyScriptFetcherImplTest, HttpStatusCode) {
TEST_F(ProxyScriptFetcherImplTest, ContentDisposition) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -188,7 +188,7 @@ TEST_F(ProxyScriptFetcherImplTest, ContentDisposition) {
TEST_F(ProxyScriptFetcherImplTest, NoCache) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -221,7 +221,7 @@ TEST_F(ProxyScriptFetcherImplTest, NoCache) {
TEST_F(ProxyScriptFetcherImplTest, TooLarge) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcherImpl> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -263,7 +263,7 @@ TEST_F(ProxyScriptFetcherImplTest, TooLarge) {
TEST_F(ProxyScriptFetcherImplTest, Hang) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcherImpl> pac_fetcher(
new ProxyScriptFetcherImpl(context));
@@ -302,7 +302,7 @@ TEST_F(ProxyScriptFetcherImplTest, Hang) {
TEST_F(ProxyScriptFetcherImplTest, Encodings) {
ASSERT_TRUE(test_server_.Start());
- scoped_refptr<URLRequestContext> context = new RequestContext;
+ scoped_refptr<URLRequestContext> context(new RequestContext);
scoped_ptr<ProxyScriptFetcher> pac_fetcher(
new ProxyScriptFetcherImpl(context));
« no previous file with comments | « net/proxy/multi_threaded_proxy_resolver.cc ('k') | net/proxy/proxy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698