Chromium Code Reviews| Index: base/test/test_launcher.h |
| diff --git a/base/test/test_launcher.h b/base/test/test_launcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c03c63e4977a8df60c785a25e466a6da5fb84c5d |
| --- /dev/null |
| +++ b/base/test/test_launcher.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BASE_TEST_TEST_LAUNCHER_H_ |
| +#define BASE_TEST_TEST_LAUNCHER_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| + |
| +namespace testing { |
| +class TestCase; |
| +class TestInfo; |
| +} |
| + |
| +namespace base { |
| + |
| +extern const char kGTestFilterFlag[]; |
| +extern const char kGTestListTestsFlag[]; |
| +extern const char kGTestRepeatFlag[]; |
| +extern const char kGTestRunDisabledTestsFlag[]; |
| +extern const char kGTestOutputFlag[]; |
| + |
| +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.
|
| + public: |
| + virtual bool ShouldRunTest(const testing::TestCase* test_case, |
| + const testing::TestInfo* test_info) = 0; |
| + virtual bool RunTest(const testing::TestCase* test_case, |
| + const testing::TestInfo* test_info) = 0; |
| + |
| + protected: |
| + virtual ~TestLauncherDelegate(); |
| +}; |
| + |
| +int LaunchTests(TestLauncherDelegate* launcher_delegate, |
| + int argc, |
| + char** argv) WARN_UNUSED_RESULT; |
| + |
| +} // namespace base |
| + |
| +#endif // BASE_TEST_TEST_LAUNCHER_H_ |