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

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

Issue 10836015: Convert more automation calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some failing tests. Created 8 years, 5 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/pyautolib/pyautolib.h ('k') | chrome/test/pyautolib/pyautolib.i » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyautolib.cc
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc
index dace100a26b78b5103a6da8f1398267c49b00154..e10930c54d6d2395eeff0f984f0e6d40cb8d108f 100644
--- a/chrome/test/pyautolib/pyautolib.cc
+++ b/chrome/test/pyautolib/pyautolib.cc
@@ -102,40 +102,6 @@ void PyUITestBase::SetLaunchSwitches() {
launch_arguments_.AppendSwitchASCII(switches::kHomePage, homepage_);
}
-void PyUITestBase::OpenFindInPage(int window_index) {
- scoped_refptr<BrowserProxy> browser_proxy = GetBrowserWindow(window_index);
- ASSERT_TRUE(browser_proxy.get());
- EXPECT_TRUE(browser_proxy->OpenFindInPage());
-}
-
-bool PyUITestBase::IsFindInPageVisible(int window_index) {
- scoped_refptr<BrowserProxy> browser_proxy = GetBrowserWindow(window_index);
- EXPECT_TRUE(browser_proxy.get());
- if (!browser_proxy.get())
- return false;
- bool is_visible;
- EXPECT_TRUE(browser_proxy->IsFindWindowFullyVisible(&is_visible));
- return is_visible;
-}
-
-bool PyUITestBase::OpenNewBrowserWindow(bool show) {
- return automation()->OpenNewBrowserWindow(Browser::TYPE_TABBED, show);
-}
-
-bool PyUITestBase::CloseBrowserWindow(int window_index) {
- scoped_refptr<BrowserProxy> browser_proxy = GetBrowserWindow(window_index);
- if (!browser_proxy.get())
- return false;
- bool app_closed;
- return CloseBrowser(browser_proxy.get(), &app_closed);
-}
-
-int PyUITestBase::GetBrowserWindowCount() {
- int num_windows = 0;
- EXPECT_TRUE(automation()->GetBrowserWindowCount(&num_windows));
- return num_windows;
-}
-
bool PyUITestBase::GetBookmarkBarState(bool* visible,
bool* detached,
int window_index) {
@@ -329,7 +295,3 @@ void PyUITestBase::RequestFailureResponse(
ErrorResponse("Chrome failed to respond", request, response);
}
}
-
-bool PyUITestBase::ResetToDefaultTheme() {
- return automation()->ResetToDefaultTheme();
-}
« no previous file with comments | « chrome/test/pyautolib/pyautolib.h ('k') | chrome/test/pyautolib/pyautolib.i » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698