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

Unified Diff: chrome/browser/sync/glue/browser_thread_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/browser_thread_model_worker_unittest.cc
diff --git a/chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc b/chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc
index 895302db1cc4e9d4d74d5ac422df07fd2818d44d..e2174d12341523191276f537821983618b36eb47 100644
--- a/chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc
+++ b/chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc
@@ -58,7 +58,7 @@ class SyncBrowserThreadModelWorkerTest : public testing::Test {
EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB));
timer_.Stop(); // Stop the failure timer so the test succeeds.
BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE, MessageLoop::QuitClosure());
+ BrowserThread::IO, FROM_HERE, base::MessageLoop::QuitClosure());
did_do_work_ = true;
return syncer::SYNCER_OK;
}
@@ -68,7 +68,7 @@ class SyncBrowserThreadModelWorkerTest : public testing::Test {
void Timeout() {
ADD_FAILURE() << "Timed out waiting for work to be done on the DB thread.";
BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE, MessageLoop::QuitClosure());
+ BrowserThread::IO, FROM_HERE, base::MessageLoop::QuitClosure());
}
protected:
@@ -88,17 +88,17 @@ class SyncBrowserThreadModelWorkerTest : public testing::Test {
OneShotTimer<SyncBrowserThreadModelWorkerTest> timer_;
content::TestBrowserThread db_thread_;
- MessageLoopForIO io_loop_;
+ base::MessageLoopForIO io_loop_;
content::TestBrowserThread io_thread_;
base::WeakPtrFactory<SyncBrowserThreadModelWorkerTest> weak_factory_;
};
TEST_F(SyncBrowserThreadModelWorkerTest, DoesWorkOnDatabaseThread) {
- MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&SyncBrowserThreadModelWorkerTest::ScheduleWork,
factory()->GetWeakPtr()));
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_TRUE(did_do_work());
}

Powered by Google App Engine
This is Rietveld 408576698