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

Unified Diff: chrome/browser/signin/local_auth_unittest.cc

Issue 548393002: Enable lock even when no password hash is present. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remote AuthCredsExist check Created 6 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
« no previous file with comments | « chrome/browser/signin/local_auth.cc ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/local_auth_unittest.cc
diff --git a/chrome/browser/signin/local_auth_unittest.cc b/chrome/browser/signin/local_auth_unittest.cc
index 2da9b74cc3411b438ab772ae44e24da8afc059f7..e1fd26c642d8cccefecdfe9f68c85d81ae301b4d 100644
--- a/chrome/browser/signin/local_auth_unittest.cc
+++ b/chrome/browser/signin/local_auth_unittest.cc
@@ -35,9 +35,7 @@ TEST(LocalAuthTest, SetAndCheckCredentials) {
std::string password("Some Password");
EXPECT_FALSE(ValidateLocalAuthCredentials(prof, password));
- EXPECT_FALSE(LocalAuthCredentialsExist(prof));
SetLocalAuthCredentials(prof, password);
- EXPECT_TRUE(LocalAuthCredentialsExist(prof));
msw 2014/09/09 16:52:56 You can keep/move the functions if they're truly v
std::string passhash = cache.GetLocalAuthCredentialsOfProfileAtIndex(0);
// We perform basic validation on the written record to ensure bugs don't slip
« no previous file with comments | « chrome/browser/signin/local_auth.cc ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698