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

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

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 years, 9 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 | « content/public/test/render_view_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 struct ContentMainParams;
22 23
23 extern const char kEmptyTestName[]; 24 extern const char kEmptyTestName[];
24 extern const char kHelpFlag[]; 25 extern const char kHelpFlag[];
25 extern const char kLaunchAsBrowser[]; 26 extern const char kLaunchAsBrowser[];
26 extern const char kRunManualTestsFlag[]; 27 extern const char kRunManualTestsFlag[];
27 extern const char kSingleProcessTestsFlag[]; 28 extern const char kSingleProcessTestsFlag[];
28 29
29 // Flag that causes only the kEmptyTestName test to be run. 30 // Flag that causes only the kEmptyTestName test to be run.
30 extern const char kWarmupFlag[]; 31 extern const char kWarmupFlag[];
31 32
(...skipping 17 matching lines...) Expand all
49 50
50 // Launches tests using |launcher_delegate|. |default_jobs| is number 51 // Launches tests using |launcher_delegate|. |default_jobs| is number
51 // of test jobs to be run in parallel, unless overridden from the command line. 52 // of test jobs to be run in parallel, unless overridden from the command line.
52 // Returns exit code. 53 // Returns exit code.
53 int LaunchTests(TestLauncherDelegate* launcher_delegate, 54 int LaunchTests(TestLauncherDelegate* launcher_delegate,
54 int default_jobs, 55 int default_jobs,
55 int argc, 56 int argc,
56 char** argv) WARN_UNUSED_RESULT; 57 char** argv) WARN_UNUSED_RESULT;
57 58
58 TestLauncherDelegate* GetCurrentTestLauncherDelegate(); 59 TestLauncherDelegate* GetCurrentTestLauncherDelegate();
60 ContentMainParams* GetContentMainParams();
59 61
60 } // namespace content 62 } // namespace content
61 63
62 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_ 64 #endif // CONTENT_PUBLIC_TEST_TEST_LAUNCHER_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698