Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: content/public/test/test_launcher.h

Issue 16820008: GTTF: Move core parts of test_launcher down to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/empty_browser_test.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PUBLIC_TEST_TEST_LAUNCHER_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_
6 #define CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 12
13 class CommandLine; 13 class CommandLine;
14 14
15 namespace base { 15 namespace base {
16 class FilePath; 16 class FilePath;
17 class RunLoop; 17 class RunLoop;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 class ContentMainDelegate; 21 class ContentMainDelegate;
22 22
23 extern const char kEmptyTestName[]; 23 extern const char kEmptyTestName[];
24 extern const char kGTestFilterFlag[];
25 extern const char kGTestHelpFlag[]; 24 extern const char kGTestHelpFlag[];
26 extern const char kGTestListTestsFlag[];
27 extern const char kGTestRepeatFlag[];
28 extern const char kGTestRunDisabledTestsFlag[];
29 extern const char kGTestOutputFlag[];
30 extern const char kHelpFlag[]; 25 extern const char kHelpFlag[];
31 extern const char kLaunchAsBrowser[]; 26 extern const char kLaunchAsBrowser[];
32 extern const char kRunManualTestsFlag[]; 27 extern const char kRunManualTestsFlag[];
33 extern const char kSingleProcessTestsFlag[]; 28 extern const char kSingleProcessTestsFlag[];
34 29
35 // Flag that causes only the kEmptyTestName test to be run. 30 // Flag that causes only the kEmptyTestName test to be run.
36 extern const char kWarmupFlag[]; 31 extern const char kWarmupFlag[];
37 32
38 class TestLauncherDelegate { 33 class TestLauncherDelegate {
39 public: 34 public:
40 virtual std::string GetEmptyTestName() = 0;
41 virtual int RunTestSuite(int argc, char** argv) = 0; 35 virtual int RunTestSuite(int argc, char** argv) = 0;
42 virtual bool AdjustChildProcessCommandLine( 36 virtual bool AdjustChildProcessCommandLine(
43 CommandLine* command_line, 37 CommandLine* command_line,
44 const base::FilePath& temp_data_dir) = 0; 38 const base::FilePath& temp_data_dir) = 0;
45 virtual void PreRunMessageLoop(base::RunLoop* run_loop) {} 39 virtual void PreRunMessageLoop(base::RunLoop* run_loop) {}
46 virtual void PostRunMessageLoop() {} 40 virtual void PostRunMessageLoop() {}
47 virtual ContentMainDelegate* CreateContentMainDelegate() = 0; 41 virtual ContentMainDelegate* CreateContentMainDelegate() = 0;
48 42
49 protected: 43 protected:
50 virtual ~TestLauncherDelegate(); 44 virtual ~TestLauncherDelegate();
51 }; 45 };
52 46
53 int LaunchTests(TestLauncherDelegate* launcher_delegate, 47 int LaunchTests(TestLauncherDelegate* launcher_delegate,
54 int argc, 48 int argc,
55 char** argv) WARN_UNUSED_RESULT; 49 char** argv) WARN_UNUSED_RESULT;
56 50
57 TestLauncherDelegate* GetCurrentTestLauncherDelegate(); 51 TestLauncherDelegate* GetCurrentTestLauncherDelegate();
58 52
59 } // namespace content 53 } // namespace content
60 54
61 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_ 55 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/empty_browser_test.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698