| Index: chrome/test/browser/browser_test_runner.cc
|
| ===================================================================
|
| --- chrome/test/browser/browser_test_runner.cc (revision 19954)
|
| +++ chrome/test/browser/browser_test_runner.cc (working copy)
|
| @@ -15,6 +15,8 @@
|
| namespace {
|
|
|
| const wchar_t* const kGTestListTestsFlag = L"gtest_list_tests";
|
| +const wchar_t* const kGTestRunDisabledTestsFlag =
|
| + L"gtest_also_run_disabled_tests";
|
|
|
| // Retrieves the list of tests to run by running gtest with the
|
| // --gtest_list_tests flag in a forked process and parsing its output.
|
| @@ -58,7 +60,8 @@
|
| continue;
|
| }
|
|
|
| - if (line.find("DISABLED") != std::string::npos)
|
| + if (!command_line.HasSwitch(kGTestRunDisabledTestsFlag) &&
|
| + line.find("DISABLED") != std::string::npos)
|
| continue; // Skip disabled tests.
|
|
|
| // We are dealing with a test.
|
|
|