Chromium Code Reviews| Index: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp |
| diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp |
| index c2fcf32d3597d9d9db7c90ae4bb922bdab7a45db..f1178146b24db507d6d22be254db309c59962166 100644 |
| --- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp |
| +++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp |
| @@ -6,6 +6,7 @@ |
| #include "bindings/core/v8/ScriptSourceCode.h" |
| #include "bindings/core/v8/V8GCController.h" |
| +#include "core/dom/CompositorProxyClient.h" |
| #include "core/inspector/ConsoleMessage.h" |
| #include "core/testing/DummyPageHolder.h" |
| #include "core/workers/InProcessWorkerObjectProxy.h" |
| @@ -57,6 +58,17 @@ private: |
| Persistent<ExecutionContext> m_executionContext; |
| }; |
| +class TestCompositorProxyClient |
| + : public GarbageCollected<TestCompositorProxyClient> |
| + , public CompositorProxyClient { |
| + USING_GARBAGE_COLLECTED_MIXIN(TestCompositorProxyClient); |
| +public: |
| + TestCompositorProxyClient() {} |
| + |
| + void setGlobalScope(WorkerGlobalScope*) override {} |
| + void runAnimationFrameCallbacks() override {} |
|
kinuko
2016/05/12 09:13:19
We are not testing any of these methods in this CL
flackr
2016/05/12 16:09:44
These methods are tested by the layout test reques
|
| +}; |
| + |
| class CompositorWorkerTestPlatform : public TestingPlatformSupport { |
| public: |
| CompositorWorkerTestPlatform() |
| @@ -97,7 +109,8 @@ public: |
| PassOwnPtr<CompositorWorkerThread> createCompositorWorker() |
| { |
| OwnPtr<CompositorWorkerThread> workerThread = CompositorWorkerThread::create(nullptr, *m_objectProxy, 0); |
| - WorkerClients* clients = nullptr; |
| + WorkerClients* clients = WorkerClients::create(); |
| + provideCompositorProxyClientTo(clients, new TestCompositorProxyClient); |
| workerThread->start(WorkerThreadStartupData::create( |
| KURL(ParsedURLString, "http://fake.url/"), |
| "fake user agent", |