| Index: third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h b/third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h
|
| index b64dc4719c206d6cdf1dbe6996bae88604f24551..fdafbd9746ee84c1a7494c686deeddf9279a6fac 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerThreadTestHelper.h
|
| @@ -12,6 +12,7 @@
|
| #include "core/workers/WorkerLoaderProxy.h"
|
| #include "core/workers/WorkerReportingProxy.h"
|
| #include "core/workers/WorkerThread.h"
|
| +#include "core/workers/WorkerThreadLifecycleObserver.h"
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| #include "platform/ThreadSafeFunctional.h"
|
| #include "platform/WaitableEvent.h"
|
| @@ -68,6 +69,16 @@ public:
|
| MOCK_METHOD0(willDestroyWorkerGlobalScope, void());
|
| };
|
|
|
| +class MockWorkerThreadLifecycleObserver final : public GarbageCollectedFinalized<MockWorkerThreadLifecycleObserver>, public WorkerThreadLifecycleObserver {
|
| + USING_GARBAGE_COLLECTED_MIXIN(MockWorkerThreadLifecycleObserver);
|
| + WTF_MAKE_NONCOPYABLE(MockWorkerThreadLifecycleObserver);
|
| +public:
|
| + explicit MockWorkerThreadLifecycleObserver(WorkerThreadContext* context)
|
| + : WorkerThreadLifecycleObserver(context) { }
|
| +
|
| + MOCK_METHOD0(contextDestroyed, void());
|
| +};
|
| +
|
| class WorkerThreadForTest : public WorkerThread {
|
| public:
|
| WorkerThreadForTest(
|
|
|