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

Unified Diff: chrome/test/base/in_process_browser_test.cc

Issue 10825085: Move RunAllPendingInMessageLoop from ui_test_utils.h to test_utils.h, so that it can be reused by c… (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/test/base/in_process_browser_test.cc
===================================================================
--- chrome/test/base/in_process_browser_test.cc (revision 149002)
+++ chrome/test/base/in_process_browser_test.cc (working copy)
@@ -333,7 +333,7 @@
#endif // defined(OS_POSIX)
// Pump startup related events.
- ui_test_utils::RunAllPendingInMessageLoop();
+ content::RunAllPendingInMessageLoop();
#if defined(OS_MACOSX)
autorelease_pool_->Recycle();
@@ -346,7 +346,7 @@
// Pump any pending events that were created as a result of creating a
// browser.
- ui_test_utils::RunAllPendingInMessageLoop();
+ content::RunAllPendingInMessageLoop();
SetUpOnMainThread();
#if defined(OS_MACOSX)
@@ -370,7 +370,7 @@
// run all pending messages here to avoid preempting the QuitBrowsers tasks.
// TODO(jbates) Once crbug.com/134753 is fixed, this can be removed because it
// will not be possible to post Quit tasks.
- ui_test_utils::RunAllPendingInMessageLoop();
+ content::RunAllPendingInMessageLoop();
QuitBrowsers();
CHECK(BrowserList::empty());
@@ -397,7 +397,7 @@
// -autorelease on itself to ultimately destroy the Browser object. The line
// below is necessary to pump these pending messages to ensure all Browsers
// get deleted.
- ui_test_utils::RunAllPendingInMessageLoop();
+ content::RunAllPendingInMessageLoop();
delete autorelease_pool_;
autorelease_pool_ = NULL;
#endif
« no previous file with comments | « chrome/browser/ui/views/sync/one_click_signin_bubble_view_browsertest.cc ('k') | chrome/test/base/ui_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698