Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1363)

Unified Diff: Source/core/workers/WorkerThreadTest.cpp

Issue 1328653002: Introduce V8GCController::collectAllGarbage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/workers/WorkerThreadTest.cpp
diff --git a/Source/core/workers/WorkerThreadTest.cpp b/Source/core/workers/WorkerThreadTest.cpp
index a6892bc9854286195f74764d0dd455347fb39f31..133f42e461ae9defed76ddd8624a92dbe04c639f 100644
--- a/Source/core/workers/WorkerThreadTest.cpp
+++ b/Source/core/workers/WorkerThreadTest.cpp
@@ -5,16 +5,15 @@
#include "config.h"
#include "core/workers/WorkerThread.h"
+#include "bindings/core/v8/V8GCController.h"
#include "core/inspector/ConsoleMessage.h"
#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;
@@ -113,8 +112,7 @@ public:
}
void willDestroyIsolate() override
{
- v8::Isolate::GetCurrent()->RequestGarbageCollectionForTesting(v8::Isolate::kFullGarbageCollection);
- Heap::collectAllGarbage();
+ V8GCController::collectAllGarbageForTesting(v8::Isolate::GetCurrent());
WorkerThread::willDestroyIsolate();
}
« no previous file with comments | « Source/bindings/core/v8/V8GCController.cpp ('k') | Source/modules/compositorworker/CompositorWorkerManagerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698