| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/test/test_launcher.h" | 5 #include "base/test/test_launcher.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/environment.h" | 10 #include "base/environment.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 printf("Failing tests:\n"); | 330 printf("Failing tests:\n"); |
| 331 for (size_t i = 0; i < printer.failed_tests().size(); ++i) | 331 for (size_t i = 0; i < printer.failed_tests().size(); ++i) |
| 332 printf("%s\n", printer.failed_tests()[i].c_str()); | 332 printf("%s\n", printer.failed_tests()[i].c_str()); |
| 333 | 333 |
| 334 return false; | 334 return false; |
| 335 } | 335 } |
| 336 | 336 |
| 337 } // namespace | 337 } // namespace |
| 338 | 338 |
| 339 const char kGTestFilterFlag[] = "gtest_filter"; | |
| 340 const char kGTestListTestsFlag[] = "gtest_list_tests"; | |
| 341 const char kGTestRepeatFlag[] = "gtest_repeat"; | |
| 342 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests"; | |
| 343 const char kGTestOutputFlag[] = "gtest_output"; | |
| 344 | |
| 345 const char kHelpFlag[] = "help"; | |
| 346 | |
| 347 TestResult::TestResult() { | 339 TestResult::TestResult() { |
| 348 } | 340 } |
| 349 | 341 |
| 350 TestLauncherDelegate::~TestLauncherDelegate() { | 342 TestLauncherDelegate::~TestLauncherDelegate() { |
| 351 } | 343 } |
| 352 | 344 |
| 353 int LaunchChildGTestProcess(const CommandLine& command_line, | 345 int LaunchChildGTestProcess(const CommandLine& command_line, |
| 354 const std::string& wrapper, | 346 const std::string& wrapper, |
| 355 base::TimeDelta timeout, | 347 base::TimeDelta timeout, |
| 356 bool* was_timeout) { | 348 bool* was_timeout) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 433 |
| 442 // Special value "-1" means "repeat indefinitely". | 434 // Special value "-1" means "repeat indefinitely". |
| 443 if (cycles != -1) | 435 if (cycles != -1) |
| 444 cycles--; | 436 cycles--; |
| 445 } | 437 } |
| 446 | 438 |
| 447 return exit_code; | 439 return exit_code; |
| 448 } | 440 } |
| 449 | 441 |
| 450 } // namespace base | 442 } // namespace base |
| OLD | NEW |