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

Unified Diff: chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc

Issue 2315443004: Remove calls to deprecated MessageLoop methods in chrome. (Closed)
Patch Set: remove unused include Created 4 years, 3 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/chromeos/login/auth/cryptohome_authenticator_unittest.cc
diff --git a/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc b/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc
index 76f7ec632a5d7c81e02b43048016e496dcaa7729..6a8a251b2e1752f6c5b64bc85c5b27143015224d 100644
--- a/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc
+++ b/chrome/browser/chromeos/login/auth/cryptohome_authenticator_unittest.cc
@@ -538,7 +538,7 @@ TEST_F(CryptohomeAuthenticatorTest, DriveGuestLogin) {
EXPECT_CALL(*mock_caller_, AsyncMountGuest(_)).Times(1).RetiresOnSaturation();
auth_->LoginOffTheRecord();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CryptohomeAuthenticatorTest, DriveGuestLoginButFail) {
@@ -551,7 +551,7 @@ TEST_F(CryptohomeAuthenticatorTest, DriveGuestLoginButFail) {
EXPECT_CALL(*mock_caller_, AsyncMountGuest(_)).Times(1).RetiresOnSaturation();
auth_->LoginOffTheRecord();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CryptohomeAuthenticatorTest, DriveDataResync) {
@@ -580,7 +580,7 @@ TEST_F(CryptohomeAuthenticatorTest, DriveDataResync) {
SetAttemptState(auth_.get(), state_.release());
auth_->ResyncEncryptedData();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CryptohomeAuthenticatorTest, DriveResyncFail) {
@@ -598,7 +598,7 @@ TEST_F(CryptohomeAuthenticatorTest, DriveResyncFail) {
SetAttemptState(auth_.get(), state_.release());
auth_->ResyncEncryptedData();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CryptohomeAuthenticatorTest, DriveRequestOldPassword) {
@@ -638,7 +638,7 @@ TEST_F(CryptohomeAuthenticatorTest, DriveDataRecover) {
SetAttemptState(auth_.get(), state_.release());
auth_->RecoverEncryptedData(std::string());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CryptohomeAuthenticatorTest, DriveDataRecoverButFail) {
@@ -658,7 +658,7 @@ TEST_F(CryptohomeAuthenticatorTest, DriveDataRecoverButFail) {
SetAttemptState(auth_.get(), state_.release());
auth_->RecoverEncryptedData(std::string());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CryptohomeAuthenticatorTest, ResolveNoMountToFailedMount) {
@@ -749,7 +749,7 @@ TEST_F(CryptohomeAuthenticatorTest, DriveUnlock) {
.RetiresOnSaturation();
auth_->AuthenticateToUnlock(user_context_);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CryptohomeAuthenticatorTest, DriveLoginWithPreHashedPassword) {

Powered by Google App Engine
This is Rietveld 408576698