OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef BASE_TEST_TEST_LAUNCHER_H_ | |
6 #define BASE_TEST_TEST_LAUNCHER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | |
10 | |
11 namespace testing { | |
12 class TestCase; | |
13 class TestInfo; | |
14 } | |
15 | |
16 namespace base { | |
17 | |
18 extern const char kGTestFilterFlag[]; | |
19 extern const char kGTestListTestsFlag[]; | |
20 extern const char kGTestRepeatFlag[]; | |
21 extern const char kGTestRunDisabledTestsFlag[]; | |
22 extern const char kGTestOutputFlag[]; | |
23 | |
24 class TestLauncherDelegate { | |
jam
2013/06/13 20:43:31
need to document this class, the methods, and the
Paweł Hajdan Jr.
2013/06/13 22:13:06
Done. I was not sure if you'd accept the approach.
| |
25 public: | |
26 virtual bool ShouldRunTest(const testing::TestCase* test_case, | |
27 const testing::TestInfo* test_info) = 0; | |
28 virtual bool RunTest(const testing::TestCase* test_case, | |
29 const testing::TestInfo* test_info) = 0; | |
30 | |
31 protected: | |
32 virtual ~TestLauncherDelegate(); | |
33 }; | |
34 | |
35 int LaunchTests(TestLauncherDelegate* launcher_delegate, | |
36 int argc, | |
37 char** argv) WARN_UNUSED_RESULT; | |
38 | |
39 } // namespace base | |
40 | |
41 #endif // BASE_TEST_TEST_LAUNCHER_H_ | |
OLD | NEW |