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

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

Issue 10834010: Revert 144488 - For unit tests, track additions to AtExitManager and warn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/in_process_browser_test.cc ('k') | content/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) 2012 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 RunLoop; 16 class RunLoop;
17 } 17 }
18 18
19 namespace test_launcher { 19 namespace test_launcher {
20 20
21 extern const char kEmptyTestName[]; 21 extern const char kEmptyTestName[];
22 extern const char kGTestFilterFlag[]; 22 extern const char kGTestFilterFlag[];
23 extern const char kGTestHelpFlag[]; 23 extern const char kGTestHelpFlag[];
24 extern const char kGTestListTestsFlag[]; 24 extern const char kGTestListTestsFlag[];
25 extern const char kGTestRepeatFlag[]; 25 extern const char kGTestRepeatFlag[];
26 extern const char kGTestRunDisabledTestsFlag[]; 26 extern const char kGTestRunDisabledTestsFlag[];
27 extern const char kGTestOutputFlag[]; 27 extern const char kGTestOutputFlag[];
28 extern const char kSingleProcessTestsFlag[];
29 extern const char kSingleProcessTestsAndChromeFlag[];
28 extern const char kHelpFlag[]; 30 extern const char kHelpFlag[];
29 31
30 // Flag that causes only the kEmptyTestName test to be run. 32 // Flag that causes only the kEmptyTestName test to be run.
31 extern const char kWarmupFlag[]; 33 extern const char kWarmupFlag[];
32 34
33 class TestLauncherDelegate { 35 class TestLauncherDelegate {
34 public: 36 public:
35 virtual std::string GetEmptyTestName() = 0; 37 virtual std::string GetEmptyTestName() = 0;
36 virtual bool Run(int argc, char** argv, int* return_code) = 0; 38 virtual bool Run(int argc, char** argv, int* return_code) = 0;
37 virtual int RunTestSuite(int argc, char** argv) = 0; 39 virtual int RunTestSuite(int argc, char** argv) = 0;
38 virtual bool AdjustChildProcessCommandLine(CommandLine* command_line) = 0; 40 virtual bool AdjustChildProcessCommandLine(CommandLine* command_line) = 0;
39 virtual void PreRunMessageLoop(base::RunLoop* run_loop) {} 41 virtual void PreRunMessageLoop(base::RunLoop* run_loop) {}
40 virtual void PostRunMessageLoop() {} 42 virtual void PostRunMessageLoop() {}
41 43
42 protected: 44 protected:
43 virtual ~TestLauncherDelegate(); 45 virtual ~TestLauncherDelegate();
44 }; 46 };
45 47
46 int LaunchTests(TestLauncherDelegate* launcher_delegate, 48 int LaunchTests(TestLauncherDelegate* launcher_delegate,
47 int argc, 49 int argc,
48 char** argv) WARN_UNUSED_RESULT; 50 char** argv) WARN_UNUSED_RESULT;
49 51
50 TestLauncherDelegate* GetCurrentTestLauncherDelegate(); 52 TestLauncherDelegate* GetCurrentTestLauncherDelegate();
51 53
52 } // namespace test_launcher 54 } // namespace test_launcher
53 55
54 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_ 56 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | content/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698