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

Unified Diff: chrome/browser/password_manager/password_store_default_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_default_unittest.cc
diff --git a/chrome/browser/password_manager/password_store_default_unittest.cc b/chrome/browser/password_manager/password_store_default_unittest.cc
index 92d0e9856d1bf8589997365a9cde6b043f07a978..825f2abf1c308b22b1412837545e3d29bcc92c98 100644
--- a/chrome/browser/password_manager/password_store_default_unittest.cc
+++ b/chrome/browser/password_manager/password_store_default_unittest.cc
@@ -112,12 +112,13 @@ class PasswordStoreDefaultTest : public testing::Test {
}
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();
}
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
content::TestBrowserThread ui_thread_;
// PasswordStore, WDS schedule work on this thread.
content::TestBrowserThread db_thread_;
@@ -132,7 +133,7 @@ ACTION(STLDeleteElements0) {
ACTION(QuitUIMessageLoop) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
TEST_F(PasswordStoreDefaultTest, NonASCIIData) {
@@ -184,7 +185,7 @@ TEST_F(PasswordStoreDefaultTest, NonASCIIData) {
.WillOnce(DoAll(WithArg<1>(STLDeleteElements0()), QuitUIMessageLoop()));
store->GetAutofillableLogins(&consumer);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
STLDeleteElements(&expected_forms);
}
« no previous file with comments | « chrome/browser/password_manager/password_manager_unittest.cc ('k') | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698