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

Unified Diff: chrome/test/ui/ui_test.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/ui/ui_test.h ('k') | content/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_test.cc
===================================================================
--- chrome/test/ui/ui_test.cc (revision 133679)
+++ chrome/test/ui/ui_test.cc (working copy)
@@ -250,42 +250,6 @@
ASSERT_TRUE(launcher_->LaunchBrowser(state));
}
-#if !defined(OS_MACOSX)
-bool UITestBase::LaunchAnotherBrowserBlockUntilClosed(
- const CommandLine& cmdline) {
- ProxyLauncher::LaunchState state = DefaultLaunchState();
- state.command.AppendArguments(cmdline, false);
- return launcher_->LaunchAnotherBrowserBlockUntilClosed(state);
-}
-
-bool UITestBase::LaunchAnotherBrowserNoUrlArg(const CommandLine& cmdline) {
- // Clear the homepage temporarily, and reset the launch switches, so that the
- // URL argument doesn't get added.
-
- std::string homepage_original;
- std::swap(homepage_original, homepage_);
-
- CommandLine launch_arguments_original(launch_arguments_);
- launch_arguments_ = CommandLine(launch_arguments_.GetProgram());
-
- SetLaunchSwitches();
-
- ProxyLauncher::LaunchState state = DefaultLaunchState();
-
- // But do add the --homepage switch
- state.command.AppendSwitchASCII(switches::kHomePage, homepage_original);
-
- state.command.AppendArguments(cmdline, false);
- bool result = launcher_->LaunchAnotherBrowserBlockUntilClosed(state);
-
- // Reset launch_arguments_ and homepage_ to their original values.
- std::swap(homepage_original, homepage_);
- std::swap(launch_arguments_original, launch_arguments_);
-
- return result;
-}
-#endif
-
void UITestBase::QuitBrowser() {
launcher_->QuitBrowser();
}
« no previous file with comments | « chrome/test/ui/ui_test.h ('k') | content/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698