diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 18:08:43 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 18:08:43 +0000 |
commit | 438772df5a7055847d061d49a8c18e6fc77daedb (patch) | |
tree | c748b7ff544f07d888a6978cac99c7c1b5d261b6 /chrome/test/test_launcher | |
parent | 46ef2ce78952914d3723b07aae28b024a1e8a6ad (diff) | |
download | chromium_src-438772df5a7055847d061d49a8c18e6fc77daedb.zip chromium_src-438772df5a7055847d061d49a8c18e6fc77daedb.tar.gz chromium_src-438772df5a7055847d061d49a8c18e6fc77daedb.tar.bz2 |
Add a metrics extensions API.
See http://docs.google.com/View?id=dd4ngnpz_0dpsb8n96 for API proposal.
BUG=0
TEST=See unit tests as part of this CL
Review URL: http://codereview.chromium.org/657037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/test_launcher')
-rw-r--r-- | chrome/test/test_launcher/out_of_proc_test_runner.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/test/test_launcher/out_of_proc_test_runner.cc b/chrome/test/test_launcher/out_of_proc_test_runner.cc index 32fb66c..98bdeca 100644 --- a/chrome/test/test_launcher/out_of_proc_test_runner.cc +++ b/chrome/test/test_launcher/out_of_proc_test_runner.cc @@ -84,7 +84,7 @@ class OutOfProcTestRunnerFactory : public tests::TestRunnerFactory { void PrintUsage() { fprintf(stdout, "Runs tests using the gtest framework, each test being run in" " its own process.\nAny gtest flags can be specified.\n" - " --single-process\n Runs the tests and the launcher in the same " + " --single_process\n Runs the tests and the launcher in the same " "process. Useful for debugging a\n specific test in a debugger\n " "--help\n Shows this message.\n --gtest_help\n Shows the gtest " "help message\n"); @@ -101,6 +101,12 @@ int main(int argc, char** argv) { return 0; } + if (command_line->HasSwitch(kSingleProcessFlag)) { + fprintf(stdout, + "\n Did you mean --%s instead? (note underscore)\n\n", + kSingleProcessAltFlag); + } + if (command_line->HasSwitch(kChildProcessFlag) || command_line->HasSwitch(kSingleProcessFlag) || command_line->HasSwitch(kSingleProcessAltFlag) || @@ -112,7 +118,7 @@ int main(int argc, char** argv) { fprintf(stdout, "Starting tests...\nIMPORTANT DEBUGGING NOTE: each test is run inside" " its own process.\nFor debugging a test inside a debugger, use the " - "--single-process and\n--gtest_filter=<your_test_name> flags.\n"); + "--single_process and\n--gtest_filter=<your_test_name> flags.\n"); OutOfProcTestRunnerFactory test_runner_factory; return tests::RunTests(test_runner_factory) ? 0 : 1; } |