Chromium Code Reviews| Index: third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp |
| diff --git a/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp b/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp |
| index 0ba6697dae6644ab7bb1d780547c5ba863ef65a1..0492c5b5e768da8e2430c6549a4617a5e82e4330 100644 |
| --- a/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp |
| +++ b/third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp |
| @@ -2,6 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include <gtest/gtest.h> |
|
Takashi Toyoshima
2017/02/06 09:13:42
hum.... this should not be a system header!
|
| +#include <memory> |
| #include "core/frame/FrameView.h" |
| #include "core/layout/api/LayoutViewItem.h" |
| #include "core/layout/compositing/CompositedLayerMapping.h" |
| @@ -12,6 +14,7 @@ |
| #include "platform/graphics/GraphicsLayer.h" |
| #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
| #include "platform/testing/URLTestHelpers.h" |
| +#include "platform/testing/UnitTestHelpers.h" |
| #include "public/platform/Platform.h" |
| #include "public/platform/WebLayer.h" |
| #include "public/platform/WebLayerTreeView.h" |
| @@ -23,17 +26,15 @@ |
| #include "web/WebViewImpl.h" |
| #include "web/tests/FrameTestHelpers.h" |
| #include "wtf/PtrUtil.h" |
| -#include <gtest/gtest.h> |
| -#include <memory> |
| namespace blink { |
| typedef bool TestParamRootLayerScrolling; |
| class CompositorWorkerTest |
| - : public testing::WithParamInterface<TestParamRootLayerScrolling>, |
| + : public ::testing::WithParamInterface<TestParamRootLayerScrolling>, |
| private ScopedRootLayerScrollingForTest, |
| private ScopedCompositorWorkerForTest, |
| - public testing::Test { |
| + public ::testing::Test { |
| public: |
| CompositorWorkerTest() |
| : ScopedRootLayerScrollingForTest(GetParam()), |
| @@ -60,8 +61,8 @@ class CompositorWorkerTest |
| } |
| void registerMockedHttpURLLoad(const std::string& fileName) { |
| - URLTestHelpers::registerMockedURLFromBaseURL( |
| - m_baseURL, WebString::fromUTF8(fileName.c_str())); |
| + URLTestHelpers::registerMockedURLLoadFromBase( |
| + m_baseURL, testing::webTestDataPath(), WebString::fromUTF8(fileName)); |
| } |
| WebLayer* getRootScrollLayer() { |