Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: chrome/test/ui/ui_test.cc

Issue 10828245: Final set of conversions of automation calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/test/functional/bookmarks.py ('K') | « chrome/test/ui/ui_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/ui_test.cc
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc
index 9ee6ead42770e42aea41fedb088767a2832071ab..4e86d7d0709d51298893b624530d1720d6ae7041 100644
--- a/chrome/test/ui/ui_test.cc
+++ b/chrome/test/ui/ui_test.cc
@@ -309,27 +309,6 @@ void UITestBase::NavigateToURLBlockUntilNavigationsComplete(
url, number_of_navigations)) << url.spec();
}
-bool UITestBase::WaitForBookmarkBarVisibilityChange(BrowserProxy* browser,
- bool wait_for_open) {
- const int kCycles = 10;
- const TimeDelta kDelay = TestTimeouts::action_timeout() / kCycles;
- for (int i = 0; i < kCycles; i++) {
- bool visible = false;
- bool animating = true;
- bool detached;
- if (!browser->GetBookmarkBarVisibility(&visible, &animating, &detached))
- return false; // Some error.
- if (visible == wait_for_open && !animating)
- return true; // Bookmark bar visibility change complete.
-
- // Give it a chance to catch up.
- base::PlatformThread::Sleep(kDelay);
- }
-
- ADD_FAILURE() << "Timeout reached in WaitForBookmarkBarVisibilityChange";
- return false;
-}
-
GURL UITestBase::GetActiveTabURL(int window_index) {
scoped_refptr<TabProxy> tab_proxy(GetActiveTab(window_index));
EXPECT_TRUE(tab_proxy.get());
« chrome/test/functional/bookmarks.py ('K') | « chrome/test/ui/ui_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698