| 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 4ef55b6c99f6dd90b62601aa616ec8a3a4e552cb..073deffd13b1f9c481992caa7ea0d20e261111b9 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/WorkerLoaderProxy.h"
|
| @@ -120,6 +121,19 @@ private:
|
| TestingCompositorSupport m_compositorSupport;
|
| };
|
|
|
| +class TestCompositorProxyClient : public CompositorProxyClient {
|
| +public:
|
| + TestCompositorProxyClient() {}
|
| + virtual ~TestCompositorProxyClient() {}
|
| +
|
| + void registerCompositorProxy(CompositorProxy*) override {}
|
| + void unregisterCompositorProxy(CompositorProxy*) override {}
|
| + void requestSync(CompositorProxy*) override {}
|
| +
|
| + void setGlobalScope(WorkerGlobalScope*) override {}
|
| + void requestMutation() override {}
|
| +};
|
| +
|
| } // namespace
|
|
|
| class CompositorWorkerThreadTest : public ::testing::Test {
|
| @@ -141,7 +155,8 @@ public:
|
| PassRefPtr<TestCompositorWorkerThread> createCompositorWorker(WebWaitableEvent* startEvent)
|
| {
|
| TestCompositorWorkerThread* workerThread = new TestCompositorWorkerThread(nullptr, *m_objectProxy, 0, startEvent);
|
| - OwnPtrWillBeRawPtr<WorkerClients> clients = nullptr;
|
| + OwnPtrWillBeRawPtr<WorkerClients> clients = WorkerClients::create();
|
| + provideCompositorProxyClientTo(clients.get(), adoptPtrWillBeNoop(new TestCompositorProxyClient()));
|
| workerThread->start(WorkerThreadStartupData::create(
|
| KURL(ParsedURLString, "http://fake.url/"),
|
| "fake user agent",
|
|
|