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

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, 4 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 | « content/child/web_url_loader_impl.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57ca624cac13e324c7c0c306b8d676eed33303ae..b5340f5002c90b633f13014c4dd9e20aca67ad15 100644
--- a/content/child/web_url_loader_impl_unittest.cc
+++ b/content/child/web_url_loader_impl_unittest.cc
@@ -68,14 +68,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;
@@ -117,7 +122,7 @@ class TestResourceDispatcher : public ResourceDispatcher {
class TestWebURLLoaderClient : public blink::WebURLLoaderClient {
public:
TestWebURLLoaderClient(ResourceDispatcher* dispatcher)
- : loader_(new WebURLLoaderImpl(dispatcher)),
+ : loader_(new WebURLLoaderImpl(dispatcher, nullptr)),
delete_on_receive_redirect_(false),
delete_on_receive_response_(false),
delete_on_receive_data_(false),
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698