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

Unified Diff: chrome/browser/chromeos/login/parallel_authenticator_unittest.cc

Issue 12686006: Rename GoogleServiceAuthError::None() to AuthErrorNone() and LoginFailure::None() to LoginFailureNo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « chrome/browser/chromeos/login/parallel_authenticator.cc ('k') | chrome/browser/policy/user_info_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/parallel_authenticator_unittest.cc
diff --git a/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc b/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc
index 8c69324b7aaf0eb76cbf41cbe715a5e5f9286991..928fcc6c5e4f72b2965b4ef6835e8ef3c7d346c3 100644
--- a/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc
+++ b/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc
@@ -277,7 +277,7 @@ TEST_F(ParallelAuthenticatorTest, ResolveNeedOldPw) {
// and been rejected because of unmatched key; additionally,
// an online auth attempt has completed successfully.
state_->PresetCryptohomeStatus(false, cryptohome::MOUNT_ERROR_KEY_FAILURE);
- state_->PresetOnlineLoginStatus(LoginFailure::None());
+ state_->PresetOnlineLoginStatus(LoginFailure::LoginFailureNone());
EXPECT_EQ(ParallelAuthenticator::NEED_OLD_PW,
SetAndResolveState(auth_, state_.release()));
@@ -454,7 +454,7 @@ TEST_F(ParallelAuthenticatorTest, DriveDataResync) {
.Times(1)
.RetiresOnSaturation();
- state_->PresetOnlineLoginStatus(LoginFailure::None());
+ state_->PresetOnlineLoginStatus(LoginFailure::LoginFailureNone());
SetAttemptState(auth_, state_.release());
auth_->ResyncEncryptedData();
@@ -482,7 +482,7 @@ TEST_F(ParallelAuthenticatorTest, DriveRequestOldPassword) {
ExpectPasswordChange();
state_->PresetCryptohomeStatus(false, cryptohome::MOUNT_ERROR_KEY_FAILURE);
- state_->PresetOnlineLoginStatus(LoginFailure::None());
+ state_->PresetOnlineLoginStatus(LoginFailure::LoginFailureNone());
SetAttemptState(auth_, state_.release());
RunResolve(auth_.get());
@@ -505,7 +505,7 @@ TEST_F(ParallelAuthenticatorTest, DriveDataRecover) {
.WillOnce(Return(std::string()))
.RetiresOnSaturation();
- state_->PresetOnlineLoginStatus(LoginFailure::None());
+ state_->PresetOnlineLoginStatus(LoginFailure::LoginFailureNone());
SetAttemptState(auth_, state_.release());
auth_->RecoverEncryptedData(std::string());
@@ -563,7 +563,7 @@ TEST_F(ParallelAuthenticatorTest, ResolveCreateNew) {
// an online auth attempt has completed successfully.
state_->PresetCryptohomeStatus(false,
cryptohome::MOUNT_ERROR_USER_DOES_NOT_EXIST);
- state_->PresetOnlineLoginStatus(LoginFailure::None());
+ state_->PresetOnlineLoginStatus(LoginFailure::LoginFailureNone());
EXPECT_EQ(ParallelAuthenticator::CREATE_NEW,
SetAndResolveState(auth_, state_.release()));
@@ -586,7 +586,7 @@ TEST_F(ParallelAuthenticatorTest, DriveCreateForNewUser) {
// an online auth attempt has completed successfully.
state_->PresetCryptohomeStatus(false,
cryptohome::MOUNT_ERROR_USER_DOES_NOT_EXIST);
- state_->PresetOnlineLoginStatus(LoginFailure::None());
+ state_->PresetOnlineLoginStatus(LoginFailure::LoginFailureNone());
SetAttemptState(auth_, state_.release());
RunResolve(auth_.get());
@@ -725,7 +725,7 @@ TEST_F(ParallelAuthenticatorTest, DriveOnlineLogin) {
// Set up state as though a cryptohome mount attempt has occurred and
// succeeded.
state_->PresetCryptohomeStatus(true, cryptohome::MOUNT_ERROR_NONE);
- state_->PresetOnlineLoginStatus(LoginFailure::None());
+ state_->PresetOnlineLoginStatus(LoginFailure::LoginFailureNone());
SetAttemptState(auth_, state_.release());
RunResolve(auth_.get());
« no previous file with comments | « chrome/browser/chromeos/login/parallel_authenticator.cc ('k') | chrome/browser/policy/user_info_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698