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

Unified Diff: Source/heap/RunAllTests.cpp

Issue 138133002: Create our own blink_heap run_all_tests target to avoid piggy-backing on wtf's. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback Created 6 years, 11 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/heap/HeapTest.cpp ('k') | Source/heap/blink_heap_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/heap/HeapTest.cpp ('k') | Source/heap/blink_heap_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698