Index: chrome/test/ui_test_utils.h |
=================================================================== |
--- chrome/test/ui_test_utils.h (revision 13436) |
+++ chrome/test/ui_test_utils.h (working copy) |
@@ -21,10 +21,20 @@ |
// the navigation finishes. |
void WaitForNavigation(NavigationController* controller); |
+// Waits for |controller| to complete a navigation. This blocks until |
+// the specified number of navigations complete. |
+void WaitForNavigations(NavigationController* controller, |
+ int number_of_navigations); |
+ |
// Navigates the selected tab of |browser| to |url|, blocking until the |
// navigation finishes. |
void NavigateToURL(Browser* browser, const GURL& url); |
+// Navigates the selected tab of |browser| to |url|, blocking until the |
+// number of navigations specified complete. |
+void NavigateToURLBlockUntilNavigationsComplete(Browser* browser, |
+ const GURL& url, |
+ int number_of_navigations); |
} |
#endif // CHROME_TEST_UI_TEST_UTILS_H_ |