Chromium Code Reviews| 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..23bae8bf111b29e9fc0d2964f70c575769d505ac 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,8 @@ |
| #include "config.h" |
| +#include "heap/Heap.h" |
| + |
|
haraken
2014/01/14 12:26:28
Nit: This empty line is not necessary.
wibling-chromium
2014/01/14 12:29:35
Done.
|
| #include "wtf/CryptographicallyRandomNumber.h" |
| #include "wtf/MainThread.h" |
| #include "wtf/WTF.h" |
| @@ -51,5 +53,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; |
| } |