Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / testing / RunAllTests.cpp
index 1b5d881..b3e6fba 100644 (file)
 
 #include "config.h"
 
+#include "platform/EventTracer.h"
+#include "platform/Partitions.h"
 #include "platform/TestingPlatformSupport.h"
+#include "platform/heap/Heap.h"
 #include "wtf/CryptographicallyRandomNumber.h"
 #include "wtf/MainThread.h"
 #include "wtf/WTF.h"
@@ -56,5 +59,13 @@ int main(int argc, char** argv)
     WebCore::TestingPlatformSupport::Config platformConfig;
     WebCore::TestingPlatformSupport platform(platformConfig);
 
-    return base::RunUnitTestsUsingBaseTestSuite(argc, argv);
+    WebCore::Heap::init();
+    WebCore::ThreadState::attachMainThread();
+    WebCore::Partitions::init();
+    WebCore::EventTracer::initialize();
+    int result = base::RunUnitTestsUsingBaseTestSuite(argc, argv);
+    WebCore::Partitions::shutdown();
+    WebCore::ThreadState::detachMainThread();
+    WebCore::Heap::shutdown();
+    return result;
 }