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

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: 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..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;
}
« 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