OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 CONTENT_TEST_TEST_LAUNCHER_H_ |
| 6 #define CONTENT_TEST_TEST_LAUNCHER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 11 |
| 12 class CommandLine; |
| 13 |
| 14 namespace test_launcher { |
| 15 |
| 16 extern const char kGTestFilterFlag[]; |
| 17 extern const char kGTestHelpFlag[]; |
| 18 extern const char kGTestListTestsFlag[]; |
| 19 extern const char kGTestRepeatFlag[]; |
| 20 extern const char kGTestRunDisabledTestsFlag[]; |
| 21 extern const char kGTestOutputFlag[]; |
| 22 |
| 23 extern const char kSingleProcessTestsFlag[]; |
| 24 extern const char kSingleProcessTestsAndChromeFlag[]; |
| 25 |
| 26 extern const char kHelpFlag[]; |
| 27 |
| 28 class TestLauncherDelegate { |
| 29 public: |
| 30 virtual void EarlyInitialize() = 0; |
| 31 virtual bool Run(int argc, char** argv, int* return_code) = 0; |
| 32 virtual bool AdjustChildProcessCommandLine(CommandLine* command_line) = 0; |
| 33 |
| 34 protected: |
| 35 virtual ~TestLauncherDelegate(); |
| 36 }; |
| 37 |
| 38 int LaunchTests(TestLauncherDelegate* launcher_delegate, |
| 39 int argc, |
| 40 char** argv) WARN_UNUSED_RESULT; |
| 41 |
| 42 } // namespace test_launcher |
| 43 |
| 44 #endif // CONTENT_TEST_TEST_LAUNCHER_H_ |
OLD | NEW |