| 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));
|
|
|
|
|