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

Unified Diff: Source/web/tests/WebUnitTests.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
« no previous file with comments | « Source/web/WebLeakDetector.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebUnitTests.cpp
diff --git a/Source/web/tests/WebUnitTests.cpp b/Source/web/tests/WebUnitTests.cpp
index b8b2cca423988333b95d7f7aa3309fe662c10f06..7c4f48a1678a0f538c9b15ce1ff7fbb3b412d6e5 100644
--- a/Source/web/tests/WebUnitTests.cpp
+++ b/Source/web/tests/WebUnitTests.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "web/tests/WebUnitTests.h"
-#include "platform/heap/Handle.h"
+#include "bindings/core/v8/V8GCController.h"
#include <base/bind.h>
#include <base/message_loop/message_loop.h>
#include <base/run_loop.h>
@@ -55,8 +55,7 @@ int runHelper(base::TestSuite* testSuite, void (*preTestHook)(void), void (*post
// Collect garbage in order to release mock objects referred from v8 or
// Oilpan heap. Otherwise false mock leaks will be reported.
- v8::Isolate::GetCurrent()->RequestGarbageCollectionForTesting(v8::Isolate::kFullGarbageCollection);
- Heap::collectAllGarbage();
+ V8GCController::collectAllGarbageForTesting(v8::Isolate::GetCurrent());
postTestHook();
« no previous file with comments | « Source/web/WebLeakDetector.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698