summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/tab_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r--chrome/test/automation/tab_proxy.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc
index 3d21d8f..f59f821 100644
--- a/chrome/test/automation/tab_proxy.cc
+++ b/chrome/test/automation/tab_proxy.cc
@@ -117,6 +117,17 @@ AutomationMsg_NavigationResponseValues TabProxy::NavigateInExternalTab(
return rv;
}
+AutomationMsg_NavigationResponseValues TabProxy::NavigateExternalTabAtIndex(
+ int index) {
+ if (!is_valid())
+ return AUTOMATION_MSG_NAVIGATION_ERROR;
+
+ AutomationMsg_NavigationResponseValues rv = AUTOMATION_MSG_NAVIGATION_ERROR;
+ sender_->Send(new AutomationMsg_NavigateExternalTabAtIndex(0, handle_, index,
+ &rv));
+ return rv;
+}
+
bool TabProxy::SetAuth(const std::wstring& username,
const std::wstring& password) {
if (!is_valid())