| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_TEST_TEST_LAUNCHER_H_ | 5 #ifndef CONTENT_TEST_TEST_LAUNCHER_H_ |
| 6 #define CONTENT_TEST_TEST_LAUNCHER_H_ | 6 #define CONTENT_TEST_TEST_LAUNCHER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 extern const char kSingleProcessTestsFlag[]; | 23 extern const char kSingleProcessTestsFlag[]; |
| 24 extern const char kSingleProcessTestsAndChromeFlag[]; | 24 extern const char kSingleProcessTestsAndChromeFlag[]; |
| 25 | 25 |
| 26 extern const char kHelpFlag[]; | 26 extern const char kHelpFlag[]; |
| 27 | 27 |
| 28 class TestLauncherDelegate { | 28 class TestLauncherDelegate { |
| 29 public: | 29 public: |
| 30 virtual void EarlyInitialize() = 0; | 30 virtual void EarlyInitialize() = 0; |
| 31 virtual bool Run(int argc, char** argv, int* return_code) = 0; | 31 virtual bool Run(int argc, char** argv, int* return_code) = 0; |
| 32 virtual int RunTestSuite(int argc, char** argv) = 0; |
| 32 virtual bool AdjustChildProcessCommandLine(CommandLine* command_line) = 0; | 33 virtual bool AdjustChildProcessCommandLine(CommandLine* command_line) = 0; |
| 33 | 34 |
| 34 protected: | 35 protected: |
| 35 virtual ~TestLauncherDelegate(); | 36 virtual ~TestLauncherDelegate(); |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 int LaunchTests(TestLauncherDelegate* launcher_delegate, | 39 int LaunchTests(TestLauncherDelegate* launcher_delegate, |
| 39 int argc, | 40 int argc, |
| 40 char** argv) WARN_UNUSED_RESULT; | 41 char** argv) WARN_UNUSED_RESULT; |
| 41 | 42 |
| 42 } // namespace test_launcher | 43 } // namespace test_launcher |
| 43 | 44 |
| 44 #endif // CONTENT_TEST_TEST_LAUNCHER_H_ | 45 #endif // CONTENT_TEST_TEST_LAUNCHER_H_ |
| OLD | NEW |