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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc

Issue 1888963004: Add HttpProtocolHandler and convert everything to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-supports-scheme
Patch Set: rebase (needs fixing) Created 4 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc
index 40d50fd359e4b3c346211072cae0aa717ccdd64a..824b385358fa55dba85842c58978de5a2aecf65d 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc
@@ -147,8 +147,8 @@ class DataReductionProxyInterceptorTest : public testing::Test {
#endif
TEST_F(DataReductionProxyInterceptorTest, MAYBE_TestJobFactoryChaining) {
// Verifies that job factories can be chained.
- std::unique_ptr<net::URLRequestJobFactory> impl(
- new net::URLRequestJobFactoryImpl());
+ std::unique_ptr<net::URLRequestJobFactory> impl =
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
CountingURLRequestInterceptor* interceptor2 =
new CountingURLRequestInterceptor();
@@ -222,8 +222,8 @@ class DataReductionProxyInterceptorWithServerTest : public testing::Test {
context_.set_proxy_service(proxy_service_.get());
- std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory_impl(
- new net::URLRequestJobFactoryImpl());
+ std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory_impl =
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
job_factory_.reset(new net::URLRequestInterceptingJobFactory(
std::move(job_factory_impl),
test_context_->io_data()->CreateInterceptor()));

Powered by Google App Engine
This is Rietveld 408576698