| 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 #ifndef BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 5 #ifndef BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
| 6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 6 #define BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/process/launch.h" | 17 #include "base/process/launch.h" |
| 18 #include "base/test/gtest_util.h" | 18 #include "base/test/gtest_util.h" |
| 19 #include "base/test/launcher/test_result.h" | 19 #include "base/test/launcher/test_result.h" |
| 20 #include "base/test/launcher/test_results_tracker.h" | 20 #include "base/test/launcher/test_results_tracker.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 | 25 |
| 26 class CommandLine; | 26 class CommandLine; |
| 27 struct LaunchOptions; | 27 struct LaunchOptions; |
| 28 class SequencedWorkerPoolOwner; | 28 class SequencedWorkerPoolOwner; |
| 29 class TaskRunner; |
| 29 class TestLauncher; | 30 class TestLauncher; |
| 30 class Thread; | 31 class Thread; |
| 31 | 32 |
| 32 // Constants for GTest command-line flags. | 33 // Constants for GTest command-line flags. |
| 33 extern const char kGTestFilterFlag[]; | 34 extern const char kGTestFilterFlag[]; |
| 34 extern const char kGTestFlagfileFlag[]; | 35 extern const char kGTestFlagfileFlag[]; |
| 35 extern const char kGTestHelpFlag[]; | 36 extern const char kGTestHelpFlag[]; |
| 36 extern const char kGTestListTestsFlag[]; | 37 extern const char kGTestListTestsFlag[]; |
| 37 extern const char kGTestRepeatFlag[]; | 38 extern const char kGTestRepeatFlag[]; |
| 38 extern const char kGTestRunDisabledTestsFlag[]; | 39 extern const char kGTestRunDisabledTestsFlag[]; |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 DISALLOW_COPY_AND_ASSIGN(TestLauncher); | 240 DISALLOW_COPY_AND_ASSIGN(TestLauncher); |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 // Extract part from |full_output| that applies to |result|. | 243 // Extract part from |full_output| that applies to |result|. |
| 243 std::string GetTestOutputSnippet(const TestResult& result, | 244 std::string GetTestOutputSnippet(const TestResult& result, |
| 244 const std::string& full_output); | 245 const std::string& full_output); |
| 245 | 246 |
| 246 } // namespace base | 247 } // namespace base |
| 247 | 248 |
| 248 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 249 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
| OLD | NEW |