Index: Source/heap/RunAllTests.cpp |
diff --git a/Source/wtf/testing/RunAllTests.cpp b/Source/heap/RunAllTests.cpp |
similarity index 89% |
copy from Source/wtf/testing/RunAllTests.cpp |
copy to Source/heap/RunAllTests.cpp |
index 5d27780e99d586068c6249d6eff297fda1cbd7d9..9b3e7e2544deb90b46d0ff5d24bc9f1ee781a9c1 100644 |
--- a/Source/wtf/testing/RunAllTests.cpp |
+++ b/Source/heap/RunAllTests.cpp |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2013 Google Inc. All rights reserved. |
+ * Copyright (C) 2014 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -30,6 +30,7 @@ |
#include "config.h" |
+#include "heap/Heap.h" |
#include "wtf/CryptographicallyRandomNumber.h" |
#include "wtf/MainThread.h" |
#include "wtf/WTF.h" |
@@ -51,5 +52,8 @@ int main(int argc, char** argv) |
WTF::setRandomSource(AlwaysZeroNumberSource); |
WTF::initialize(CurrentTime, 0); |
WTF::initializeMainThread(0); |
- return base::RunUnitTestsUsingBaseTestSuite(argc, argv); |
+ WebCore::Heap::init(); |
+ int result = base::RunUnitTestsUsingBaseTestSuite(argc, argv); |
+ WebCore::Heap::shutdown(); |
+ return result; |
} |