summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/tab_proxy.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 20:32:58 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-19 20:32:58 +0000
commit2e028a0889a45e034177aedca54fc01b9f9166b0 (patch)
tree10852c98cc87363680f26ddcbf22127849843f31 /chrome/test/automation/tab_proxy.h
parent081f1cec17b1fd8054b532ac2b82b13b739c9949 (diff)
downloadchromium_src-2e028a0889a45e034177aedca54fc01b9f9166b0.zip
chromium_src-2e028a0889a45e034177aedca54fc01b9f9166b0.tar.gz
chromium_src-2e028a0889a45e034177aedca54fc01b9f9166b0.tar.bz2
Add automation call to wait for multiple navigations.
Convert one ErrorPage UI test to use it. The rest of the tests will require more work. TEST=Covered by ui_tests. http://crbug.com/19361, http://crbug.com/19395 Review URL: http://codereview.chromium.org/174015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23729 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.h')
-rw-r--r--chrome/test/automation/tab_proxy.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/chrome/test/automation/tab_proxy.h b/chrome/test/automation/tab_proxy.h
index 5e83227..2c19bea 100644
--- a/chrome/test/automation/tab_proxy.h
+++ b/chrome/test/automation/tab_proxy.h
@@ -77,13 +77,23 @@ class TabProxy : public AutomationResourceProxy {
// Navigates to a url. This method accepts the same kinds of URL input that
// can be passed to Chrome on the command line. This is a synchronous call and
// hence blocks until the navigation completes.
- AutomationMsg_NavigationResponseValues NavigateToURL(const GURL& url);
+ AutomationMsg_NavigationResponseValues NavigateToURL(
+ const GURL& url);
+
+ // Navigates to a url. This method accepts the same kinds of URL input that
+ // can be passed to Chrome on the command line. This is a synchronous call and
+ // hence blocks until the |number_of_navigations| navigations complete.
+ AutomationMsg_NavigationResponseValues
+ NavigateToURLBlockUntilNavigationsComplete(const GURL& url,
+ int number_of_navigations);
// Navigates to a url. This is same as NavigateToURL with a timeout option.
- // The function returns until the navigation completes or timeout (in
- // milliseconds) occurs. If return after timeout, is_timeout is set to true.
+ // The function blocks until the |number_of_navigations| navigations
+ // completes or timeout (in milliseconds) occurs. If return after timeout,
+ // is_timeout is set to true.
AutomationMsg_NavigationResponseValues NavigateToURLWithTimeout(
- const GURL& url, uint32 timeout_ms, bool* is_timeout);
+ const GURL& url, int number_of_navigations, uint32 timeout_ms,
+ bool* is_timeout);
// Navigates to a url in an externally hosted tab.
// This method accepts the same kinds of URL input that