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

Unified Diff: chrome/browser/extensions/activity_log/activity_database_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/extensions/activity_log/activity_database_unittest.cc
diff --git a/chrome/browser/extensions/activity_log/activity_database_unittest.cc b/chrome/browser/extensions/activity_log/activity_database_unittest.cc
index 4006d6ee93f18949dd44ec0b46c53d1948ce08af..4e62c13551848f5cfed5d6dff031d3e42e7a4ec9 100644
--- a/chrome/browser/extensions/activity_log/activity_database_unittest.cc
+++ b/chrome/browser/extensions/activity_log/activity_database_unittest.cc
@@ -39,9 +39,9 @@ namespace extensions {
class ActivityDatabaseTest : public ChromeRenderViewHostTestHarness {
public:
ActivityDatabaseTest()
- : ui_thread_(BrowserThread::UI, MessageLoop::current()),
- db_thread_(BrowserThread::DB, MessageLoop::current()),
- file_thread_(BrowserThread::FILE, MessageLoop::current()) {}
+ : ui_thread_(BrowserThread::UI, base::MessageLoop::current()),
+ db_thread_(BrowserThread::DB, base::MessageLoop::current()),
+ file_thread_(BrowserThread::FILE, base::MessageLoop::current()) {}
virtual void SetUp() OVERRIDE {
ChromeRenderViewHostTestHarness::SetUp();
@@ -56,8 +56,9 @@ class ActivityDatabaseTest : public ChromeRenderViewHostTestHarness {
}
virtual ~ActivityDatabaseTest() {
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
+ base::MessageLoop::current()->Run();
}
protected:
@@ -371,7 +372,7 @@ TEST_F(ActivityDatabaseTest, BatchModeOn) {
// Artificially trigger and then stop the timer.
activity_db->SetTimerForTesting(0);
- MessageLoop::current()->RunUntilIdle();
+ base::MessageLoop::current()->RunUntilIdle();
scoped_ptr<std::vector<scoped_refptr<Action> > > actions_after =
activity_db->GetActions("punky", 0);
« no previous file with comments | « chrome/browser/extensions/active_tab_unittest.cc ('k') | chrome/browser/extensions/activity_log/activity_log_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698