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

Unified Diff: chrome/test/pyautolib/pyautolib.cc

Issue 10692067: Convert PyAuto's NavigateToURL, GetActiveTabIndex, Refresh, RefreshActiveTab, and AppendTab to the … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/pyautolib/pyautolib.cc
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc
index cdfd3426b2ed730d841146727e2ba972c4e16447..b8052cf97df2053462080a32b0b9e1245fa786a2 100644
--- a/chrome/test/pyautolib/pyautolib.cc
+++ b/chrome/test/pyautolib/pyautolib.cc
@@ -99,34 +99,6 @@ void PyUITestBase::SetLaunchSwitches() {
// However, we *do* want the --homepage switch.
std::swap(homepage_original, homepage_);
launch_arguments_.AppendSwitchASCII(switches::kHomePage, homepage_);
-
-}
-
-void PyUITestBase::NavigateToURL(const char* url_string) {
- GURL url(url_string);
- UITestBase::NavigateToURL(url);
-}
-
-void PyUITestBase::NavigateToURL(const char* url_string, int window_index) {
- GURL url(url_string);
- UITestBase::NavigateToURL(url, window_index);
-}
-
-void PyUITestBase::NavigateToURL(
- const char* url_string, int window_index, int tab_index) {
- GURL url(url_string);
- UITestBase::NavigateToURL(url, window_index, tab_index);
-}
-
-void PyUITestBase::ReloadActiveTab(int window_index) {
- scoped_refptr<TabProxy> tab_proxy(GetActiveTab());
- ASSERT_TRUE(tab_proxy.get());
- ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab_proxy->Reload());
-}
-
-bool PyUITestBase::AppendTab(const GURL& tab_url, int window_index) {
- scoped_refptr<BrowserProxy> browser_proxy = GetBrowserWindow(window_index);
- return browser_proxy->AppendTab(tab_url);
}
bool PyUITestBase::ApplyAccelerator(int id, int window_index) {

Powered by Google App Engine
This is Rietveld 408576698