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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc

Issue 1162583003: Credential Management: Rename 'LocalCredential' to 'PasswordCredential' (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drop
Patch Set: Fix. Created 5 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/ui/passwords/manage_passwords_ui_controller_unittest.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc b/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc
index 0b8dd60fd10ce26b64422e01173884f93ac791ed..491f9ec1e73546aa93539fd7f621b9c4c8ee62f7 100644
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc
@@ -402,14 +402,14 @@ TEST_F(ManagePasswordsUIControllerTest, ChooseCredentialLocal) {
controller()->ManagePasswordsUIController::ChooseCredential(
test_local_form(),
- password_manager::CredentialType::CREDENTIAL_TYPE_LOCAL);
+ password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD);
controller()->OnBubbleHidden();
EXPECT_EQ(password_manager::ui::MANAGE_STATE, controller()->state());
ASSERT_TRUE(credential_info());
EXPECT_EQ(test_local_form().username_value, credential_info()->id);
EXPECT_EQ(test_local_form().password_value, credential_info()->password);
EXPECT_TRUE(credential_info()->federation.is_empty());
- EXPECT_EQ(password_manager::CredentialType::CREDENTIAL_TYPE_LOCAL,
+ EXPECT_EQ(password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD,
credential_info()->type);
}
@@ -436,7 +436,7 @@ TEST_F(ManagePasswordsUIControllerTest, ChooseCredentialLocalButFederated) {
controller()->ManagePasswordsUIController::ChooseCredential(
test_federated_form(),
- password_manager::CredentialType::CREDENTIAL_TYPE_LOCAL);
+ password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD);
controller()->OnBubbleHidden();
EXPECT_EQ(password_manager::ui::MANAGE_STATE, controller()->state());
ASSERT_TRUE(credential_info());

Powered by Google App Engine
This is Rietveld 408576698