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

Unified Diff: chrome/browser/sync/glue/ui_model_worker_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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/sync/glue/ui_model_worker_unittest.cc
diff --git a/chrome/browser/sync/glue/ui_model_worker_unittest.cc b/chrome/browser/sync/glue/ui_model_worker_unittest.cc
index e4de2822c2bab704ef747cec7a6bd5604c4bd0b2..dd76963ecfad323e3fbd0924f07a9f9a1713524f 100644
--- a/chrome/browser/sync/glue/ui_model_worker_unittest.cc
+++ b/chrome/browser/sync/glue/ui_model_worker_unittest.cc
@@ -32,7 +32,7 @@ class UIModelWorkerVisitor {
EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::UI));
was_run_->Signal();
if (quit_loop_when_run_)
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
return syncer::SYNCER_OK;
}
@@ -98,7 +98,7 @@ class SyncUIModelWorkerTest : public testing::Test {
base::Thread* core_thread() { return &faux_core_thread_; }
base::Thread* syncer_thread() { return &faux_syncer_thread_; }
private:
- MessageLoop faux_ui_loop_;
+ base::MessageLoop faux_ui_loop_;
scoped_ptr<content::TestBrowserThread> ui_thread_;
base::Thread faux_syncer_thread_;
base::Thread faux_core_thread_;
@@ -116,7 +116,7 @@ TEST_F(SyncUIModelWorkerTest, ScheduledWorkRunsOnUILoop) {
// We are on the UI thread, so run our loop to process the
// (hopefully) scheduled task from a SyncShare invocation.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
bmw()->OnSyncerShutdownComplete();
bmw()->Stop();

Powered by Google App Engine
This is Rietveld 408576698