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

Unified Diff: base/test/launcher/unit_test_launcher.cc

Issue 59623015: GTTF: Flip test launcher defaults (developer mode is now default) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | « base/test/launcher/test_launcher.cc ('k') | base/test/test_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/launcher/unit_test_launcher.cc
diff --git a/base/test/launcher/unit_test_launcher.cc b/base/test/launcher/unit_test_launcher.cc
index c5dbc4d2b7da00ff4612d6c0888c24bc22a9c86d..8a57d178f651fcce9eb3e894caba7d3fc4de1e25 100644
--- a/base/test/launcher/unit_test_launcher.cc
+++ b/base/test/launcher/unit_test_launcher.cc
@@ -464,26 +464,21 @@ int LaunchUnitTests(int argc,
testing::InitGoogleTest(&argc, argv);
TestTimeouts::Initialize();
- int jobs = SysInfo::NumberOfProcessors();
- if (!GetSwitchValueAsInt(switches::kTestLauncherJobs, &jobs))
- return 1;
-
int batch_limit = kDefaultTestBatchLimit;
if (!GetSwitchValueAsInt(switches::kTestLauncherBatchLimit, &batch_limit))
return 1;
fprintf(stdout,
- "Starting tests (using %d parallel jobs)...\n"
"IMPORTANT DEBUGGING NOTE: batches of tests are run inside their\n"
"own process. For debugging a test inside a debugger, use the\n"
"--gtest_filter=<your_test_name> flag along with\n"
- "--single-process-tests.\n", jobs);
+ "--single-process-tests.\n");
fflush(stdout);
MessageLoopForIO message_loop;
base::UnitTestLauncherDelegate delegate(batch_limit);
- base::TestLauncher launcher(&delegate, jobs);
+ base::TestLauncher launcher(&delegate, SysInfo::NumberOfProcessors());
bool success = launcher.Run(argc, argv);
fprintf(stdout,
« no previous file with comments | « base/test/launcher/test_launcher.cc ('k') | base/test/test_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698