summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/ui_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/ui/ui_test.cc')
-rw-r--r--chrome/test/ui/ui_test.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index f4dbfb0..83803ed 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -539,12 +539,9 @@ void UITestBase::NavigateToURLBlockUntilNavigationsComplete(
const GURL& url, int number_of_navigations) {
scoped_refptr<TabProxy> tab_proxy(GetActiveTab());
ASSERT_TRUE(tab_proxy.get());
- bool is_timeout = true;
EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
- tab_proxy->NavigateToURLWithTimeout(
- url, number_of_navigations, action_max_timeout_ms(),
- &is_timeout)) << url.spec();
- ASSERT_FALSE(is_timeout) << url.spec();
+ tab_proxy->NavigateToURLBlockUntilNavigationsComplete(
+ url, number_of_navigations)) << url.spec();
}
void UITestBase::NavigateToURLBlockUntilNavigationsComplete(
@@ -555,12 +552,9 @@ void UITestBase::NavigateToURLBlockUntilNavigationsComplete(
ASSERT_TRUE(window.get());
scoped_refptr<TabProxy> tab_proxy(window->GetTab(tab_index));
ASSERT_TRUE(tab_proxy.get());
- bool is_timeout = true;
EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
- tab_proxy->NavigateToURLWithTimeout(
- url, number_of_navigations, action_max_timeout_ms(),
- &is_timeout)) << url.spec();
- ASSERT_FALSE(is_timeout) << url.spec();
+ tab_proxy->NavigateToURLBlockUntilNavigationsComplete(
+ url, number_of_navigations)) << url.spec();
}
bool UITestBase::WaitForDownloadShelfVisible(BrowserProxy* browser) {