Index: Source/web/tests/RunAllTests.cpp |
diff --git a/Source/web/tests/RunAllTests.cpp b/Source/web/tests/RunAllTests.cpp |
index 9160a6dce9c01d07f494adce327ad72dd9457821..7ea5d6642bcd8e0ccf1f5f2e65cc29bf0e35fb64 100644 |
--- a/Source/web/tests/RunAllTests.cpp |
+++ b/Source/web/tests/RunAllTests.cpp |
@@ -32,10 +32,12 @@ |
#include "config.h" |
#endif |
+#include "platform/heap/Handle.h" |
#include "public/platform/Platform.h" |
#include "public/web/WebKit.h" |
#include "web/tests/WebUnitTests.h" |
#include <content/test/webkit_support.h> |
+#include <v8.h> |
namespace { |
@@ -48,6 +50,9 @@ void preTestHook() |
void postTestHook() |
{ |
+ v8::Isolate::GetCurrent()->RequestGarbageCollectionForTesting(v8::Isolate::kFullGarbageCollection); |
tkent
2014/07/30 01:52:25
Why do you need GC? Please mention this change in
yhirano
2014/07/30 03:27:24
Done.
|
+ blink::Heap::collectAllGarbage(); |
+ |
content::TearDownTestEnvironment(); |
} |