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

Unified Diff: chrome/browser/password_manager/password_store_x_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/password_manager/password_store_x_unittest.cc
diff --git a/chrome/browser/password_manager/password_store_x_unittest.cc b/chrome/browser/password_manager/password_store_x_unittest.cc
index 8ba62cce32e02ce0886f50e7550b0fc40f0c94a3..6be0ab94b1907e8a45e04a336d301f32e83856db 100644
--- a/chrome/browser/password_manager/password_store_x_unittest.cc
+++ b/chrome/browser/password_manager/password_store_x_unittest.cc
@@ -285,8 +285,9 @@ class PasswordStoreXTest : public testing::TestWithParam<BackendType> {
}
virtual void TearDown() {
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
+ base::MessageLoop::current()->Run();
db_thread_.Stop();
}
@@ -301,7 +302,7 @@ class PasswordStoreXTest : public testing::TestWithParam<BackendType> {
}
}
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
// PasswordStore, WDS schedule work on this thread.
content::TestBrowserThread db_thread_;
@@ -317,7 +318,7 @@ ACTION(STLDeleteElements0) {
ACTION(QuitUIMessageLoop) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
TEST_P(PasswordStoreXTest, Notifications) {
@@ -472,7 +473,7 @@ TEST_P(PasswordStoreXTest, NativeMigration) {
.WillOnce(DoAll(WithArg<1>(STLDeleteElements0()), QuitUIMessageLoop()));
store->GetAutofillableLogins(&consumer);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// The blacklisted forms should have been migrated to the native backend.
EXPECT_CALL(consumer,
@@ -481,7 +482,7 @@ TEST_P(PasswordStoreXTest, NativeMigration) {
.WillOnce(DoAll(WithArg<1>(STLDeleteElements0()), QuitUIMessageLoop()));
store->GetBlacklistLogins(&consumer);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
VectorOfForms empty;
MockLoginDatabaseReturn ld_return;
« no previous file with comments | « chrome/browser/password_manager/password_store_win_unittest.cc ('k') | chrome/browser/plugins/plugin_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698