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

Unified Diff: chrome/browser/download/download_test_observer.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/browser/download/download_browsertest.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_test_observer.cc
===================================================================
--- chrome/browser/download/download_test_observer.cc (revision 148497)
+++ chrome/browser/download/download_test_observer.cc (working copy)
@@ -71,7 +71,7 @@
void DownloadTestObserver::WaitForFinished() {
if (!IsFinished()) {
waiting_ = true;
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
waiting_ = false;
}
}
@@ -269,7 +269,7 @@
void DownloadTestFlushObserver::WaitForFlush() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
download_manager_->AddObserver(this);
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
void DownloadTestFlushObserver::ModelChanged(DownloadManager* manager) {
@@ -377,7 +377,7 @@
if (called_back_count_ == 0) {
waiting_ = true;
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
waiting_ = false;
}
}
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698