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

Unified Diff: net/url_request/url_request_ftp_job_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
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_http_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_ftp_job_unittest.cc
diff --git a/net/url_request/url_request_ftp_job_unittest.cc b/net/url_request/url_request_ftp_job_unittest.cc
index 6f2642106cf96b91391bfb86575fcd4406395409..c716eef96ffd792408e04e22fac5458de613645e 100644
--- a/net/url_request/url_request_ftp_job_unittest.cc
+++ b/net/url_request/url_request_ftp_job_unittest.cc
@@ -78,7 +78,8 @@ class FtpTestURLRequestContext : public TestURLRequestContext {
context_storage_.set_proxy_service(std::move(proxy_service));
set_network_delegate(network_delegate);
std::unique_ptr<URLRequestJobFactoryImpl> job_factory =
- base::WrapUnique(new URLRequestJobFactoryImpl);
+ URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
+
job_factory->SetProtocolHandler("ftp",
base::WrapUnique(ftp_protocol_handler_));
context_storage_.set_job_factory(std::move(job_factory));
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698