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

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

Issue 10701075: Remove chromeos::CryptohomeLibrary::HashPassword (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clarify comment in HashPassword() Created 8 years, 5 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') | no next file » | 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 55a187c30bcf2a0dd7d928dbedc1d6c880709047..dcb2e87ab9ba845dbc6bbe67532b317fca1925d0 100644
--- a/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc
+++ b/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc
@@ -490,7 +490,7 @@ TEST_F(ParallelAuthenticatorTest, DriveDataRecover) {
EXPECT_CALL(*mock_caller_, AsyncMount(username_, hash_ascii_, false, _))
.Times(1)
.RetiresOnSaturation();
- EXPECT_CALL(*mock_cryptohome_library_, HashPassword(_))
+ EXPECT_CALL(*mock_cryptohome_library_, GetSystemSalt())
.WillOnce(Return(std::string()))
.RetiresOnSaturation();
@@ -511,7 +511,7 @@ TEST_F(ParallelAuthenticatorTest, DriveDataRecoverButFail) {
EXPECT_CALL(*mock_caller_, AsyncMigrateKey(username_, _, hash_ascii_, _))
.Times(1)
.RetiresOnSaturation();
- EXPECT_CALL(*mock_cryptohome_library_, HashPassword(_))
+ EXPECT_CALL(*mock_cryptohome_library_, GetSystemSalt())
.WillOnce(Return(std::string()))
.RetiresOnSaturation();
@@ -628,7 +628,7 @@ TEST_F(ParallelAuthenticatorTest, DriveOfflineLoginGetNewPassword) {
_))
.Times(1)
.RetiresOnSaturation();
- EXPECT_CALL(*mock_cryptohome_library_, HashPassword(_))
+ EXPECT_CALL(*mock_cryptohome_library_, GetSystemSalt())
.WillOnce(Return(std::string()))
.RetiresOnSaturation();
@@ -666,7 +666,7 @@ TEST_F(ParallelAuthenticatorTest, DriveOfflineLoginGetNewPassword) {
TEST_F(ParallelAuthenticatorTest, DriveOfflineLoginGetCaptchad) {
ExpectLoginSuccess(username_, password_, true);
FailOnLoginFailure();
- EXPECT_CALL(*mock_cryptohome_library_, HashPassword(_))
+ EXPECT_CALL(*mock_cryptohome_library_, GetSystemSalt())
.WillOnce(Return(std::string()))
.RetiresOnSaturation();
@@ -748,7 +748,7 @@ TEST_F(ParallelAuthenticatorTest, DriveUnlock) {
EXPECT_CALL(*mock_caller_, AsyncCheckKey(username_, _, _))
.Times(1)
.RetiresOnSaturation();
- EXPECT_CALL(*mock_cryptohome_library_, HashPassword(_))
+ EXPECT_CALL(*mock_cryptohome_library_, GetSystemSalt())
.WillOnce(Return(std::string()))
.RetiresOnSaturation();
« no previous file with comments | « chrome/browser/chromeos/login/parallel_authenticator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698