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

Unified Diff: chrome/test/base/ui_test_utils.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
« no previous file with comments | « chrome/test/base/ui_test_utils.h ('k') | chrome/test/base/ui_test_utils_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.cc
===================================================================
--- chrome/test/base/ui_test_utils.cc (revision 148497)
+++ chrome/test/base/ui_test_utils.cc (working copy)
@@ -148,21 +148,16 @@
const base::Closure& quit_task) {
MessageLoop::current()->PostTask(FROM_HERE,
MessageLoop::QuitWhenIdleClosure());
- RunMessageLoop();
+ content::RunMessageLoop();
content::BrowserThread::PostTask(thread_id, FROM_HERE, quit_task);
}
} // namespace
-void RunMessageLoop() {
- base::RunLoop run_loop;
- content::RunThisRunLoop(&run_loop);
-}
-
void RunAllPendingInMessageLoop() {
MessageLoop::current()->PostTask(FROM_HERE,
MessageLoop::QuitWhenIdleClosure());
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
void RunAllPendingInMessageLoop(content::BrowserThread::ID thread_id) {
@@ -390,7 +385,7 @@
const content::NotificationSource& source) {
content::NotificationRegistrar registrar;
registrar.Add(observer, type, source);
- RunMessageLoop();
+ content::RunMessageLoop();
}
void WaitForBookmarkModelToLoad(BookmarkModel* model) {
« no previous file with comments | « chrome/test/base/ui_test_utils.h ('k') | chrome/test/base/ui_test_utils_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698