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

Unified Diff: chrome/browser/chromeos/compact_navigation_bar_browsertest.cc

Issue 1591004: RunAllPendingEvents -> ui_test_utils::RunAllPendingInMessageLoop (Closed)
Patch Set: " Created 10 years, 9 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
Index: chrome/browser/chromeos/compact_navigation_bar_browsertest.cc
diff --git a/chrome/browser/chromeos/compact_navigation_bar_browsertest.cc b/chrome/browser/chromeos/compact_navigation_bar_browsertest.cc
index de4e9b429828af7f736661f456c930f6b693ee9d..c77397287f8ab2f5b3067833e40955359c66735a 100644
--- a/chrome/browser/chromeos/compact_navigation_bar_browsertest.cc
+++ b/chrome/browser/chromeos/compact_navigation_bar_browsertest.cc
@@ -51,16 +51,16 @@ IN_PROC_BROWSER_TEST_F(CompactNavigationBarTest, TestAccelerator) {
// ctrl-shift-c should toggle compact navigation bar.
ui_controls::SendKeyPress(window, base::VKEY_C, true, true, false);
- RunAllPendingEvents();
+ ui_test_utils::RunAllPendingInMessageLoop();
EXPECT_TRUE(IsViewIdVisible(VIEW_ID_COMPACT_NAV_BAR));
ui_controls::SendKeyPress(window, base::VKEY_C, true, true, false);
- RunAllPendingEvents();
+ ui_test_utils::RunAllPendingInMessageLoop();
EXPECT_FALSE(IsViewIdVisible(VIEW_ID_COMPACT_NAV_BAR));
// but ctrl-alt-c should not.
ui_controls::SendKeyPress(window, base::VKEY_C, true, false, true);
- RunAllPendingEvents();
+ ui_test_utils::RunAllPendingInMessageLoop();
EXPECT_FALSE(IsViewIdVisible(VIEW_ID_COMPACT_NAV_BAR));
}

Powered by Google App Engine
This is Rietveld 408576698