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

Unified Diff: third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp

Issue 2654933003: platform/testing/{URL|Unit}TestHelpers improvements (Closed)
Patch Set: header changes 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
Index: third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp b/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
index c50ec6cea096604f6a0d4ef25b91adcb0e5ea8ae..7006a752b53d2a66958ab685fb6ff2cdbee87d89 100644
--- a/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
+++ b/third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp
@@ -4,8 +4,10 @@
#include "core/loader/DocumentLoader.h"
+#include <queue>
#include "core/page/Page.h"
#include "platform/testing/URLTestHelpers.h"
+#include "platform/testing/UnitTestHelpers.h"
#include "public/platform/Platform.h"
#include "public/platform/WebURLLoaderClient.h"
#include "public/platform/WebURLLoaderMockFactory.h"
@@ -14,7 +16,6 @@
#include "web/WebLocalFrameImpl.h"
#include "web/tests/FrameTestHelpers.h"
#include "wtf/AutoReset.h"
-#include <queue>
namespace blink {
@@ -25,7 +26,8 @@ class DocumentLoaderTest : public ::testing::Test {
void SetUp() override {
m_webViewHelper.initialize();
URLTestHelpers::registerMockedURLLoad(
- URLTestHelpers::toKURL("https://example.com/foo.html"), "foo.html");
+ URLTestHelpers::toKURL("https://example.com/foo.html"),
+ testing::webTestDataPath("foo.html"));
}
void TearDown() override {

Powered by Google App Engine
This is Rietveld 408576698