From 087b9595c869df4b0cbfa219f43cd6e68b5d07f3 Mon Sep 17 00:00:00 2001 From: "tedv@chromium.org" Date: Tue, 4 Dec 2012 23:50:12 +0000 Subject: Update net/proxy unit test initialization of URLRequestJobFactory object. The associated CR involves moving mutation interfaces of URLRequestJobFactory to URLRequestJobFactory. As such, their initializations need to maintain their type as URLRequestJobFactoryImpl before those interfaces can be removed. See CL https://codereview.chromium.org/11227017 for more information. BUG=146602 Review URL: https://chromiumcodereview.appspot.com/11418203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171083 0039d316-1c4b-4281-b951-d872f2087c98 --- net/proxy/proxy_script_fetcher_impl_unittest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc index 7a25c55..a061bea 100644 --- a/net/proxy/proxy_script_fetcher_impl_unittest.cc +++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc @@ -90,10 +90,10 @@ class RequestContext : public URLRequestContext { storage_.set_http_transaction_factory(new HttpCache( network_session, HttpCache::DefaultBackend::InMemory(0))); - url_request_job_factory_.reset(new URLRequestJobFactoryImpl); + scoped_ptr factory(new URLRequestJobFactoryImpl); + factory->AddInterceptor(new CheckNoRevocationFlagSetInterceptor); + url_request_job_factory_ = factory.Pass(); set_job_factory(url_request_job_factory_.get()); - url_request_job_factory_->AddInterceptor( - new CheckNoRevocationFlagSetInterceptor); } virtual ~RequestContext() { -- cgit v1.1