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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceTest.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 years, 11 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/fetch/ResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceTest.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceTest.cpp
similarity index 92%
rename from third_party/WebKit/Source/core/fetch/ResourceTest.cpp
rename to third_party/WebKit/Source/platform/loader/fetch/ResourceTest.cpp
index 5319046aea4aab568d774619abca5dee120620d1..a421b170e8a9f71744d5ea51eeaa7f598af58684 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceTest.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceTest.cpp
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "core/fetch/Resource.h"
+#include "platform/loader/fetch/Resource.h"
-#include "core/fetch/MemoryCache.h"
-#include "core/fetch/RawResource.h"
#include "platform/SharedBuffer.h"
+#include "platform/loader/fetch/RawResource.h"
#include "platform/network/ResourceRequest.h"
#include "platform/network/ResourceResponse.h"
#include "platform/testing/TestingPlatformSupport.h"
@@ -19,7 +18,7 @@ namespace blink {
namespace {
-class MockPlatform final : public TestingPlatformSupport {
+class MockPlatform final : public TestingPlatformSupportWithMockScheduler {
public:
MockPlatform() {}
~MockPlatform() override {}
@@ -72,6 +71,7 @@ TEST(
}
TEST(ResourceTest, RevalidateWithFragment) {
+ ScopedTestingPlatformSupport<MockPlatform> mock;
KURL url(ParsedURLString, "http://127.0.0.1:8000/foo.html");
ResourceResponse response;
response.setURL(url);

Powered by Google App Engine
This is Rietveld 408576698