Chromium Code Reviews| Index: third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp |
| diff --git a/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp b/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp |
| index e0e5ba0376c079e7b8203c4bc00524151f832203..a32bf0e8766ac46a52dabbb74248205d4fb2b0a9 100644 |
| --- a/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp |
| +++ b/third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp |
| @@ -36,6 +36,7 @@ |
| #include "core/frame/VisualViewport.h" |
| #include "core/page/Page.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" |
| @@ -51,7 +52,7 @@ namespace blink { |
| // These tests cover browser controls scrolling on main-thread. |
| // The animation for completing a partial show/hide is done in compositor so |
| // it is not covered here. |
| -class BrowserControlsTest : public testing::Test { |
| +class BrowserControlsTest : public ::testing::Test { |
| public: |
| BrowserControlsTest() : m_baseURL("http://www.test.com/") { |
| registerMockedHttpURLLoad("large-div.html"); |
| @@ -93,8 +94,8 @@ class BrowserControlsTest : public testing::Test { |
| } |
| void registerMockedHttpURLLoad(const std::string& fileName) { |
| - URLTestHelpers::registerMockedURLFromBaseURL( |
| - WebString::fromUTF8(m_baseURL.c_str()), |
| + URLTestHelpers::registerMockedURLLoadFromBase( |
| + WebString::fromUTF8(m_baseURL.c_str()), testing::webTestDataPath(), |
|
Takashi Toyoshima
2017/01/26 10:57:57
removing c_str()
|
| WebString::fromUTF8(fileName.c_str())); |
| } |