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

Unified Diff: third_party/WebKit/Source/web/tests/TouchActionTest.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/TouchActionTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
index e34e6813e0ac727b7a8ea095ad772a6131e293f9..fc096a62e1ed13f55b0c6f4f66494319946f736b 100644
--- a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
+++ b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
@@ -95,12 +95,15 @@ const int kfakeTouchId = 7;
class TouchActionTest : public ::testing::Test {
public:
TouchActionTest() : m_baseURL("http://www.test.com/") {
- URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL),
- "touch-action-tests.css");
- URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL),
- "touch-action-tests.js");
- URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL),
- "white-1x1.png");
+ URLTestHelpers::registerMockedURLLoadFromBase(
+ WebString::fromUTF8(m_baseURL), testing::webTestDataPath(),
+ "touch-action-tests.css");
+ URLTestHelpers::registerMockedURLLoadFromBase(
+ WebString::fromUTF8(m_baseURL), testing::webTestDataPath(),
+ "touch-action-tests.js");
+ URLTestHelpers::registerMockedURLLoadFromBase(
+ WebString::fromUTF8(m_baseURL), testing::webTestDataPath(),
+ "white-1x1.png");
}
void TearDown() override {
@@ -195,8 +198,9 @@ void TouchActionTest::runIFrameTest(std::string file) {
WebView* TouchActionTest::setupTest(
std::string file,
TouchActionTrackingWebWidgetClient& client) {
- URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL),
- WebString::fromUTF8(file));
+ URLTestHelpers::registerMockedURLLoadFromBase(WebString::fromUTF8(m_baseURL),
+ testing::webTestDataPath(),
+ WebString::fromUTF8(file));
// Note that JavaScript must be enabled for shadow DOM tests.
WebView* webView =
m_webViewHelper.initializeAndLoad(m_baseURL + file, true, 0, 0, &client);
« no previous file with comments | « third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp ('k') | third_party/WebKit/Source/web/tests/ViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698