| Index: Source/core/workers/WorkerThreadTest.cpp
|
| diff --git a/Source/core/workers/WorkerThreadTest.cpp b/Source/core/workers/WorkerThreadTest.cpp
|
| index 14549166e531cd3b6f08bab8c897ef3212979b5f..9a88e0188365934c96c042624e118e821befa4de 100644
|
| --- a/Source/core/workers/WorkerThreadTest.cpp
|
| +++ b/Source/core/workers/WorkerThreadTest.cpp
|
| @@ -9,10 +9,12 @@
|
| #include "core/workers/WorkerReportingProxy.h"
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| #include "platform/NotImplemented.h"
|
| +#include "platform/heap/Heap.h"
|
| #include "public/platform/WebScheduler.h"
|
| #include "public/platform/WebWaitableEvent.h"
|
| #include <gmock/gmock.h>
|
| #include <gtest/gtest.h>
|
| +#include <v8.h>
|
|
|
| using testing::_;
|
| using testing::AtMost;
|
| @@ -109,6 +111,12 @@ public:
|
| {
|
| return *m_thread;
|
| }
|
| + void willDestroyIsolate() override
|
| + {
|
| + v8::Isolate::GetCurrent()->RequestGarbageCollectionForTesting(v8::Isolate::kFullGarbageCollection);
|
| + Heap::collectAllGarbage();
|
| + WorkerThread::willDestroyIsolate();
|
| + }
|
|
|
| MOCK_METHOD1(doIdleGc, bool(double deadlineSeconds));
|
|
|
|
|