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

Unified Diff: third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h

Issue 2872403003: Have ResourceLoader use FetchContext::CreateURLLoader (Closed)
Patch Set: fix Created 3 years, 7 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 | « third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
diff --git a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
index 1e92508dad413ec2426d7e184c7913ef25959fd7..f1b9ccb82111b97df0438dd448af525eee0b1e89 100644
--- a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
@@ -10,6 +10,7 @@
#include "platform/loader/fetch/ResourceTimingInfo.h"
#include "platform/scheduler/test/fake_web_task_runner.h"
#include "platform/wtf/PtrUtil.h"
+#include "public/platform/Platform.h"
#include <memory>
@@ -74,6 +75,10 @@ class MockFetchContext : public FetchContext {
transfer_size_ = resource_timing_info.TransferSize();
}
+ std::unique_ptr<WebURLLoader> CreateURLLoader() override {
+ return Platform::Current()->CreateURLLoader();
+ }
+
private:
MockFetchContext(LoadPolicy load_policy, RefPtr<WebTaskRunner> task_runner)
: load_policy_(load_policy),
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698