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

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

Issue 2790693002: Split CSP into pre- and post-upgrade checks (Closed)
Patch Set: add unit tests Created 3 years, 8 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: 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 03b3eb8adc403a5aef2dd9428540fccfefc604c5..2867f11816d25b046f4f4235c0649b45046e0614 100644
--- a/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/testing/MockFetchContext.h
@@ -54,6 +54,16 @@ class MockFetchContext : public FetchContext {
FetchRequest::OriginRestriction) const override {
return ResourceRequestBlockedReason::kNone;
}
+ ResourceRequestBlockedReason CanFollowRedirect(
+ Resource::Type type,
+ const ResourceRequest& request,
+ const KURL& url,
+ const ResourceLoaderOptions& options,
+ SecurityViolationReportingPolicy reporting_policy,
+ FetchRequest::OriginRestriction origin_restriction) const override {
+ return CanRequest(type, request, url, options, reporting_policy,
+ origin_restriction);
+ }
bool ShouldLoadNewResource(Resource::Type) const override {
return load_policy_ == kShouldLoadNewResource;
}

Powered by Google App Engine
This is Rietveld 408576698