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 testing { | |
25 class TestCase; | |
26 class TestInfo; | |
27 } | |
28 | |
29 namespace base { | 24 namespace base { |
30 | 25 |
31 class CommandLine; | 26 class CommandLine; |
32 struct LaunchOptions; | 27 struct LaunchOptions; |
33 class SequencedWorkerPoolOwner; | 28 class SequencedWorkerPoolOwner; |
34 class TestLauncher; | 29 class TestLauncher; |
35 class Thread; | 30 class Thread; |
36 | 31 |
37 // Constants for GTest command-line flags. | 32 // Constants for GTest command-line flags. |
38 extern const char kGTestFilterFlag[]; | 33 extern const char kGTestFilterFlag[]; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 DISALLOW_COPY_AND_ASSIGN(TestLauncher); | 235 DISALLOW_COPY_AND_ASSIGN(TestLauncher); |
241 }; | 236 }; |
242 | 237 |
243 // Extract part from |full_output| that applies to |result|. | 238 // Extract part from |full_output| that applies to |result|. |
244 std::string GetTestOutputSnippet(const TestResult& result, | 239 std::string GetTestOutputSnippet(const TestResult& result, |
245 const std::string& full_output); | 240 const std::string& full_output); |
246 | 241 |
247 } // namespace base | 242 } // namespace base |
248 | 243 |
249 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ | 244 #endif // BASE_TEST_LAUNCHER_TEST_LAUNCHER_H_ |
OLD | NEW |