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

Unified Diff: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc

Issue 10822030: Move ui_test_utils::RunMessageLoop to test_utils so that it can be reused by content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/ui/omnibox/omnibox_view_browsertest.cc
===================================================================
--- chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (revision 148497)
+++ chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (working copy)
@@ -231,7 +231,7 @@
content::NotificationService::AllSources());
while (!HasFailure() && browser->tab_count() != expected_tab_count)
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
ASSERT_EQ(expected_tab_count, browser->tab_count());
}
@@ -257,7 +257,7 @@
content::Source<AutocompleteController>(controller));
while (!HasFailure() && !controller->done())
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
ASSERT_TRUE(controller->done());
}
@@ -273,7 +273,7 @@
registrar.Add(this, chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
content::Source<TemplateURLService>(model));
model->Load();
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
ASSERT_TRUE(model->loaded());
@@ -307,7 +307,7 @@
content::NotificationRegistrar registrar;
registrar.Add(this, chrome::NOTIFICATION_HISTORY_LOADED,
content::Source<Profile>(profile));
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
BookmarkModel* bookmark_model = profile->GetBookmarkModel();
@@ -317,7 +317,7 @@
content::NotificationRegistrar registrar;
registrar.Add(this, chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED,
content::Source<Profile>(profile));
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
GURL url(entry.url);
@@ -335,7 +335,7 @@
content::NotificationRegistrar registrar;
registrar.Add(this, chrome::NOTIFICATION_HISTORY_URLS_MODIFIED,
content::Source<Profile>(profile));
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
// We don't want to return until all observers have processed this
// notification, because some (e.g. the in-memory history database) may do
// something important. Since we don't know where in the observer list we

Powered by Google App Engine
This is Rietveld 408576698