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

Unified Diff: chrome/test/base/chrome_test_launcher.cc

Issue 10202005: Convert the session restore ui_tests to browser_tests. I renabled the disabled tests; hopefully the… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: renable the mac test Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/proxy_launcher.cc ('k') | chrome/test/base/chrome_test_suite.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_test_launcher.cc
===================================================================
--- chrome/test/base/chrome_test_launcher.cc (revision 133679)
+++ chrome/test/base/chrome_test_launcher.cc (working copy)
@@ -38,9 +38,14 @@
}
virtual bool Run(int argc, char** argv, int* return_code) OVERRIDE {
+#if defined(OS_WIN) || defined(OS_LINUX)
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ bool launch_chrome =
+ command_line->HasSwitch(switches::kProcessType) ||
+ command_line->HasSwitch(ChromeTestSuite::kLaunchAsBrowser);
+#endif
#if defined(OS_WIN)
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kProcessType)) {
+ if (launch_chrome) {
sandbox::SandboxInterfaceInfo sandbox_info = {0};
content::InitializeSandboxInfo(&sandbox_info);
ChromeMainDelegate chrome_main_delegate;
@@ -50,8 +55,7 @@
return true;
}
#elif defined(OS_LINUX)
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kProcessType)) {
+ if (launch_chrome) {
ChromeMainDelegate chrome_main_delegate;
*return_code = content::ContentMain(argc,
const_cast<const char**>(argv),
« no previous file with comments | « chrome/test/automation/proxy_launcher.cc ('k') | chrome/test/base/chrome_test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698