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

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

Issue 2714383003: Reduce FetchContext::getCachePolicy() callers (Closed)
Patch Set: rebase Created 3 years, 10 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/ResourceFetcherTest.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 b3b6b326ee58de8c3e3ca5a612b18e3a092c3038..3fcbbba2f2567b9b0804ab91f4032364c5840309 100644
--- a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
@@ -38,7 +38,6 @@ class MockFetchContext : public FetchContext {
~MockFetchContext() override {}
- void setCachePolicy(CachePolicy policy) { m_policy = policy; }
void setLoadComplete(bool complete) { m_complete = complete; }
long long getTransferSize() const { return m_transferSize; }
@@ -59,7 +58,6 @@ class MockFetchContext : public FetchContext {
return m_loadPolicy == kShouldLoadNewResource;
}
RefPtr<WebTaskRunner> loadingTaskRunner() const override { return m_runner; }
- CachePolicy getCachePolicy() const override { return m_policy; }
bool isLoadComplete() const override { return m_complete; }
void addResourceTiming(
const ResourceTimingInfo& resourceTimingInfo) override {
@@ -69,14 +67,12 @@ class MockFetchContext : public FetchContext {
private:
MockFetchContext(LoadPolicy loadPolicy, RefPtr<WebTaskRunner> taskRunner)
: m_loadPolicy(loadPolicy),
- m_policy(CachePolicyVerify),
m_runner(taskRunner ? std::move(taskRunner)
: adoptRef(new scheduler::FakeWebTaskRunner)),
m_complete(false),
m_transferSize(-1) {}
enum LoadPolicy m_loadPolicy;
- CachePolicy m_policy;
RefPtr<WebTaskRunner> m_runner;
bool m_complete;
long long m_transferSize;
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698