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

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

Issue 17084007: Revert "GTTF: Remove message loop hooks from TestLauncherDelegate" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/chrome_test_launcher.cc ('k') | content/public/test/test_utils.h » ('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"
(...skipping 24 matching lines...) Expand all
35 // Flag that causes only the kEmptyTestName test to be run. 35 // Flag that causes only the kEmptyTestName test to be run.
36 extern const char kWarmupFlag[]; 36 extern const char kWarmupFlag[];
37 37
38 class TestLauncherDelegate { 38 class TestLauncherDelegate {
39 public: 39 public:
40 virtual std::string GetEmptyTestName() = 0; 40 virtual std::string GetEmptyTestName() = 0;
41 virtual int RunTestSuite(int argc, char** argv) = 0; 41 virtual int RunTestSuite(int argc, char** argv) = 0;
42 virtual bool AdjustChildProcessCommandLine( 42 virtual bool AdjustChildProcessCommandLine(
43 CommandLine* command_line, 43 CommandLine* command_line,
44 const base::FilePath& temp_data_dir) = 0; 44 const base::FilePath& temp_data_dir) = 0;
45 virtual void PreRunMessageLoop(base::RunLoop* run_loop) {}
46 virtual void PostRunMessageLoop() {}
45 virtual ContentMainDelegate* CreateContentMainDelegate() = 0; 47 virtual ContentMainDelegate* CreateContentMainDelegate() = 0;
46 48
47 protected: 49 protected:
48 virtual ~TestLauncherDelegate(); 50 virtual ~TestLauncherDelegate();
49 }; 51 };
50 52
51 int LaunchTests(TestLauncherDelegate* launcher_delegate, 53 int LaunchTests(TestLauncherDelegate* launcher_delegate,
52 int argc, 54 int argc,
53 char** argv) WARN_UNUSED_RESULT; 55 char** argv) WARN_UNUSED_RESULT;
54 56
55 TestLauncherDelegate* GetCurrentTestLauncherDelegate(); 57 TestLauncherDelegate* GetCurrentTestLauncherDelegate();
56 58
57 } // namespace content 59 } // namespace content
58 60
59 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_ 61 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_test_launcher.cc ('k') | content/public/test/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698