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

Unified Diff: Source/modules/fetch/RequestTest.cpp

Issue 795323003: Move Fetch API releted code to modules/fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/modules/fetch/RequestInit.cpp ('k') | Source/modules/fetch/Response.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/RequestTest.cpp
diff --git a/Source/modules/serviceworkers/RequestTest.cpp b/Source/modules/fetch/RequestTest.cpp
similarity index 95%
rename from Source/modules/serviceworkers/RequestTest.cpp
rename to Source/modules/fetch/RequestTest.cpp
index c4e961641ea5231004953dfb4f4f8fd4ee85f8af..8860ee82578caeb8af7d2871ca550f14b6166d77 100644
--- a/Source/modules/serviceworkers/RequestTest.cpp
+++ b/Source/modules/fetch/RequestTest.cpp
@@ -3,13 +3,13 @@
// found in the LICENSE file.
#include "config.h"
+#include "modules/fetch/Request.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptState.h"
#include "core/dom/Document.h"
#include "core/frame/Frame.h"
#include "core/testing/DummyPageHolder.h"
-#include "modules/serviceworkers/Request.h"
#include "public/platform/WebServiceWorkerRequest.h"
#include "wtf/HashMap.h"
#include "wtf/text/WTFString.h"
@@ -61,7 +61,10 @@ TEST_F(ServiceWorkerRequestTest, FromAndToWebRequest)
const KURL url(ParsedURLString, "http://www.example.com/");
const String method = "GET";
- struct { const char* key; const char* value; } headers[] = { {"X-Foo", "bar"}, {"X-Quux", "foop"}, {0, 0} };
+ struct {
+ const char* key;
+ const char* value;
+ } headers[] = { {"X-Foo", "bar"}, {"X-Quux", "foop"}, {0, 0} };
const String referrer = "http://www.referrer.com/";
const WebReferrerPolicy referrerPolicy = WebReferrerPolicyAlways;
« no previous file with comments | « Source/modules/fetch/RequestInit.cpp ('k') | Source/modules/fetch/Response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698