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

Unified Diff: content/test/run_all_unittests.cc

Issue 23442019: Convert most run_all_unittests.cc files to use new unit test launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 3 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 | « components/test/run_all_unittests.cc ('k') | courgette/courgette.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/run_all_unittests.cc
diff --git a/content/test/run_all_unittests.cc b/content/test/run_all_unittests.cc
index 695cebe9dc7a151f17abec3839408d9a680cbdb5..f098a06306b63b349190eedff8b02716b99989f9 100644
--- a/content/test/run_all_unittests.cc
+++ b/content/test/run_all_unittests.cc
@@ -2,10 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/bind.h"
+#include "base/test/unit_test_launcher.h"
#include "content/test/content_test_suite.h"
#include "content/public/test/unittest_test_suite.h"
int main(int argc, char** argv) {
- return content::UnitTestTestSuite(
- new content::ContentTestSuite(argc, argv)).Run();
+ content::UnitTestTestSuite test_suite(
+ new content::ContentTestSuite(argc, argv));
+
+ return base::LaunchUnitTests(
+ argc, argv, base::Bind(&content::UnitTestTestSuite::Run,
+ base::Unretained(&test_suite)));
}
« no previous file with comments | « components/test/run_all_unittests.cc ('k') | courgette/courgette.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698