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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_test.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/safe_browsing/safe_browsing_test.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_test.cc (revision 148497)
+++ chrome/browser/safe_browsing/safe_browsing_test.cc (working copy)
@@ -384,7 +384,7 @@
base::Bind(&SafeBrowsingServiceTestHelper::ForceUpdateInIOThread,
this));
// Will continue after OnForceUpdateDone().
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
void ForceUpdateInIOThread() {
EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -403,7 +403,7 @@
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
base::Bind(&SafeBrowsingServiceTestHelper::CheckUrlOnIOThread,
this, url));
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
void CheckUrlOnIOThread(const GURL& url) {
EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -453,7 +453,7 @@
this),
wait_time);
// Will continue after OnWaitForStatusUpdateDone().
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
}
void WaitTillServerReady(const char* host, int port) {
@@ -533,7 +533,7 @@
url_fetcher_->SetLoadFlags(net::LOAD_DISABLE_CACHE);
url_fetcher_->SetRequestContext(request_context_);
url_fetcher_->Start();
- ui_test_utils::RunMessageLoop();
+ content::RunMessageLoop();
return response_status_;
}

Powered by Google App Engine
This is Rietveld 408576698