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

Unified Diff: content/child/web_url_loader_impl_unittest.cc

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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: content/child/web_url_loader_impl_unittest.cc
diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc
index dc4baeb4e8fe650bbed33100d268996c9e0d107b..1647243ac938ce1845af8b96d4b81efe6c85635a 100644
--- a/content/child/web_url_loader_impl_unittest.cc
+++ b/content/child/web_url_loader_impl_unittest.cc
@@ -71,14 +71,19 @@ class TestResourceDispatcher : public ResourceDispatcher {
void StartSync(const RequestInfo& request_info,
ResourceRequestBodyImpl* request_body,
- SyncLoadResponse* response) override {
+ SyncLoadResponse* response,
+ blink::WebURLRequest::LoadingIPCType ipc_type,
+ mojom::URLLoaderFactory* url_loader_factory) override {
*response = sync_load_response_;
}
int StartAsync(const RequestInfo& request_info,
ResourceRequestBodyImpl* request_body,
- std::unique_ptr<RequestPeer> peer) override {
+ std::unique_ptr<RequestPeer> peer,
+ blink::WebURLRequest::LoadingIPCType ipc_type,
+ mojom::URLLoaderFactory* url_loader_factory) override {
EXPECT_FALSE(peer_);
+ EXPECT_EQ(blink::WebURLRequest::LoadingIPCType::ChromeIPC, ipc_type);
peer_ = std::move(peer);
url_ = request_info.url;
stream_url_ = request_info.resource_body_stream_url;
@@ -123,7 +128,8 @@ class TestWebURLLoaderClient : public blink::WebURLLoaderClient {
scoped_refptr<scheduler::TaskQueue> task_runner)
: loader_(new WebURLLoaderImpl(
dispatcher,
- base::WrapUnique(new scheduler::WebTaskRunnerImpl(task_runner)))),
+ base::WrapUnique(new scheduler::WebTaskRunnerImpl(task_runner)),
+ nullptr)),
delete_on_receive_redirect_(false),
delete_on_receive_response_(false),
delete_on_receive_data_(false),

Powered by Google App Engine
This is Rietveld 408576698