Index: third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
diff --git a/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp b/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
index 8076ba7dc4ab44ff5a2abacb1a648c77a3eeec16..6209b4532341953d5e96fdd16f533a8cff6b6f42 100644 |
--- a/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
+++ b/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
@@ -14,6 +14,7 @@ |
#include "core/testing/DummyPageHolder.h" |
#include "platform/PopupMenu.h" |
#include "platform/testing/URLTestHelpers.h" |
+#include "platform/testing/UnitTestHelpers.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebURLLoaderMockFactory.h" |
#include "public/web/WebCache.h" |
@@ -27,7 +28,7 @@ |
namespace blink { |
-class ExternalPopupMenuDisplayNoneItemsTest : public testing::Test { |
+class ExternalPopupMenuDisplayNoneItemsTest : public ::testing::Test { |
public: |
ExternalPopupMenuDisplayNoneItemsTest() {} |
@@ -97,7 +98,7 @@ class ExternalPopupMenuWebFrameClient |
MockWebExternalPopupMenu m_mockWebExternalPopupMenu; |
}; |
-class ExternalPopupMenuTest : public testing::Test { |
+class ExternalPopupMenuTest : public ::testing::Test { |
public: |
ExternalPopupMenuTest() : m_baseURL("http://www.test.com") {} |
@@ -112,10 +113,9 @@ class ExternalPopupMenuTest : public testing::Test { |
} |
void registerMockedURLLoad(const std::string& fileName) { |
- URLTestHelpers::registerMockedURLLoad( |
- URLTestHelpers::toKURL(m_baseURL + fileName), |
- WebString::fromUTF8(fileName.c_str()), WebString::fromUTF8("popup/"), |
- WebString::fromUTF8("text/html")); |
+ URLTestHelpers::registerMockedURLLoadFromBase( |
+ WebString::fromUTF8(m_baseURL), testing::webTestDataPath("popup"), |
+ WebString::fromUTF8(fileName), WebString::fromUTF8("text/html")); |
} |
void loadFrame(const std::string& fileName) { |