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

Unified Diff: tools/gn/run_all_unittests.cc

Issue 318543002: Make GN unit tests single process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « tools/gn/gn.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/run_all_unittests.cc
diff --git a/ui/v2/src/v2_unittest.cc b/tools/gn/run_all_unittests.cc
similarity index 55%
copy from ui/v2/src/v2_unittest.cc
copy to tools/gn/run_all_unittests.cc
index 0e6cdb72e7754b45902240d37eacff028f0d07a1..edd80fed5d8196c90883d62095157c9fc0ba3307 100644
--- a/ui/v2/src/v2_unittest.cc
+++ b/tools/gn/run_all_unittests.cc
@@ -2,15 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/basictypes.h"
#include "base/bind.h"
-#include "base/compiler_specific.h"
-#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
+// Don't use the multiprocess test harness. This test suite is fast enough and
+// it makes the output more difficult to read.
int main(int argc, char** argv) {
base::TestSuite test_suite(argc, argv);
- return base::LaunchUnitTests(
- argc, argv, base::Bind(&base::TestSuite::Run,
- base::Unretained(&test_suite)));
+ return test_suite.Run();
}
« no previous file with comments | « tools/gn/gn.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698