diff options
author | tedv@chromium.org <tedv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 23:50:12 +0000 |
---|---|---|
committer | tedv@chromium.org <tedv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 23:50:12 +0000 |
commit | 087b9595c869df4b0cbfa219f43cd6e68b5d07f3 (patch) | |
tree | eee210f69db7130a9e2d6de82195714a8af98cbb /net/proxy | |
parent | 91f9e4d35cf2965d73f8aa2cefb0d0439075d4a7 (diff) | |
download | chromium_src-087b9595c869df4b0cbfa219f43cd6e68b5d07f3.zip chromium_src-087b9595c869df4b0cbfa219f43cd6e68b5d07f3.tar.gz chromium_src-087b9595c869df4b0cbfa219f43cd6e68b5d07f3.tar.bz2 |
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
Diffstat (limited to 'net/proxy')
-rw-r--r-- | net/proxy/proxy_script_fetcher_impl_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<URLRequestJobFactoryImpl> 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() { |