summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib/pyautolib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/pyautolib/pyautolib.cc')
-rw-r--r--chrome/test/pyautolib/pyautolib.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc
index 0e19b90..8465e39 100644
--- a/chrome/test/pyautolib/pyautolib.cc
+++ b/chrome/test/pyautolib/pyautolib.cc
@@ -30,6 +30,24 @@ void PyUITestSuite::NavigateToURL(const char* url_string) {
UITestBase::NavigateToURL(url);
}
+bool PyUITestSuite::AppendTab(const GURL& tab_url, int window_index) {
+ scoped_refptr<BrowserProxy> browser_proxy =
+ automation()->GetBrowserWindow(window_index);
+ return browser_proxy->AppendTab(tab_url);
+}
+
+bool PyUITestSuite::ApplyAccelerator(int id, int window_index) {
+ scoped_refptr<BrowserProxy> browser_proxy =
+ automation()->GetBrowserWindow(window_index);
+ return browser_proxy->ApplyAccelerator(id);
+}
+
+bool PyUITestSuite::ActivateTab(int tab_index, int window_index) {
+ scoped_refptr<BrowserProxy> browser_proxy =
+ automation()->GetBrowserWindow(window_index);
+ return browser_proxy->ActivateTab(tab_index);
+}
+
void PyUITestSuite::SetShelfVisible(bool is_visible) {
scoped_refptr<BrowserProxy> browser_proxy = automation()->GetBrowserWindow(0);
ASSERT_TRUE(browser_proxy.get());
@@ -80,3 +98,7 @@ bool PyUITestSuite::OpenNewBrowserWindow(bool show) {
return automation()->OpenNewBrowserWindow(Browser::TYPE_NORMAL, show);
}
+bool PyUITestSuite::InstallExtension(const FilePath& crx_file) {
+ return automation()->InstallExtension(crx_file);
+}
+