| 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/launcher/test_launcher.h" | 5 #include "base/test/launcher/test_launcher.h" |
| 6 | 6 |
| 7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 // a worker pool thread. | 429 // a worker pool thread. |
| 430 task_runner->PostTask(FROM_HERE, Bind(&RunCallback, callback, exit_code, | 430 task_runner->PostTask(FROM_HERE, Bind(&RunCallback, callback, exit_code, |
| 431 TimeTicks::Now() - start_time, | 431 TimeTicks::Now() - start_time, |
| 432 was_timeout, output_file_contents)); | 432 was_timeout, output_file_contents)); |
| 433 } | 433 } |
| 434 | 434 |
| 435 } // namespace | 435 } // namespace |
| 436 | 436 |
| 437 const char kGTestBreakOnFailure[] = "gtest_break_on_failure"; | 437 const char kGTestBreakOnFailure[] = "gtest_break_on_failure"; |
| 438 const char kGTestFilterFlag[] = "gtest_filter"; | 438 const char kGTestFilterFlag[] = "gtest_filter"; |
| 439 const char kGTestFlagfileFlag[] = "gtest_flagfile"; |
| 439 const char kGTestHelpFlag[] = "gtest_help"; | 440 const char kGTestHelpFlag[] = "gtest_help"; |
| 440 const char kGTestListTestsFlag[] = "gtest_list_tests"; | 441 const char kGTestListTestsFlag[] = "gtest_list_tests"; |
| 441 const char kGTestRepeatFlag[] = "gtest_repeat"; | 442 const char kGTestRepeatFlag[] = "gtest_repeat"; |
| 442 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests"; | 443 const char kGTestRunDisabledTestsFlag[] = "gtest_also_run_disabled_tests"; |
| 443 const char kGTestOutputFlag[] = "gtest_output"; | 444 const char kGTestOutputFlag[] = "gtest_output"; |
| 444 | 445 |
| 445 TestLauncherDelegate::~TestLauncherDelegate() { | 446 TestLauncherDelegate::~TestLauncherDelegate() { |
| 446 } | 447 } |
| 447 | 448 |
| 448 TestLauncher::TestLauncher(TestLauncherDelegate* launcher_delegate, | 449 TestLauncher::TestLauncher(TestLauncherDelegate* launcher_delegate, |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 } | 1088 } |
| 1088 | 1089 |
| 1089 std::string snippet(full_output.substr(run_pos)); | 1090 std::string snippet(full_output.substr(run_pos)); |
| 1090 if (end_pos != std::string::npos) | 1091 if (end_pos != std::string::npos) |
| 1091 snippet = full_output.substr(run_pos, end_pos - run_pos); | 1092 snippet = full_output.substr(run_pos, end_pos - run_pos); |
| 1092 | 1093 |
| 1093 return snippet; | 1094 return snippet; |
| 1094 } | 1095 } |
| 1095 | 1096 |
| 1096 } // namespace base | 1097 } // namespace base |
| OLD | NEW |