Chromium Code Reviews| Index: third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp |
| diff --git a/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp b/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp |
| index a30220e0b71ff87db9ff118ea20497519a2ab26e..2c9d27aee0a4342e53302879989d5ba538905c67 100644 |
| --- a/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp |
| +++ b/third_party/WebKit/Source/web/tests/ListenerLeakTest.cpp |
| @@ -29,6 +29,7 @@ |
| */ |
| #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" |
| @@ -82,14 +83,14 @@ int GetNumObjects(const char* constructor) { |
| return count; |
| } |
| -class ListenerLeakTest : public testing::Test { |
| +class ListenerLeakTest : public ::testing::Test { |
| public: |
| void RunTest(const std::string& filename) { |
| std::string baseURL("http://www.example.com/"); |
| std::string fileName(filename); |
| bool executeScript = true; |
| - URLTestHelpers::registerMockedURLFromBaseURL( |
| - WebString::fromUTF8(baseURL.c_str()), |
| + URLTestHelpers::registerMockedURLLoadFromBase( |
| + WebString::fromUTF8(baseURL.c_str()), blink::testing::webTestDataPath(), |
| WebString::fromUTF8(fileName.c_str())); |
|
kinuko
2017/01/26 09:32:41
no need of .c_str()
Takashi Toyoshima
2017/01/26 10:57:58
Done.
|
| webViewHelper.initializeAndLoad(baseURL + fileName, executeScript); |
| } |