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

Unified Diff: Source/core/testing/URLTestHelpers.cpp

Issue 570563003: Implement CSP check for manifest fetching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed nit from mkwst Created 6 years, 2 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 | « Source/core/testing/URLTestHelpers.h ('k') | Source/web/AssociatedURLLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/URLTestHelpers.cpp
diff --git a/Source/core/testing/URLTestHelpers.cpp b/Source/core/testing/URLTestHelpers.cpp
index 1a0f261d8b1eb85092806f31d44bfd7c6dfd4a4a..f7ac96a02444f02fb38f7e171a53da0f342a6599 100644
--- a/Source/core/testing/URLTestHelpers.cpp
+++ b/Source/core/testing/URLTestHelpers.cpp
@@ -57,6 +57,11 @@ void registerMockedURLLoad(const WebURL& fullURL, const WebString& fileName, con
response.setMIMEType(mimeType);
response.setHTTPStatusCode(200);
+ registerMockedURLLoadWithCustomResponse(fullURL, fileName, relativeBaseDirectory, response);
+}
+
+void registerMockedURLLoadWithCustomResponse(const WebURL& fullURL, const WebString& fileName, const WebString& relativeBaseDirectory, WebURLResponse response)
+{
// Physical file path for the mock = <webkitRootDir> + relativeBaseDirectory + fileName.
std::string filePath = std::string(Platform::current()->unitTestSupport()->webKitRootDir().utf8().data());
filePath.append("/Source/web/tests/data/");
« no previous file with comments | « Source/core/testing/URLTestHelpers.h ('k') | Source/web/AssociatedURLLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698