| Index: components/password_manager/content/browser/credential_manager_dispatcher_unittest.cc
|
| diff --git a/components/password_manager/content/browser/credential_manager_dispatcher_unittest.cc b/components/password_manager/content/browser/credential_manager_dispatcher_unittest.cc
|
| index 56452f496916367321cd7a2ff383b5f4ab3e3634..843ae1c71ba0048eec5c818d35f300756a9f9fb9 100644
|
| --- a/components/password_manager/content/browser/credential_manager_dispatcher_unittest.cc
|
| +++ b/components/password_manager/content/browser/credential_manager_dispatcher_unittest.cc
|
| @@ -82,7 +82,7 @@ class MockPasswordManagerClient
|
| local_forms.empty() ? *federated_forms[0] : *local_forms[0],
|
| local_forms.empty()
|
| ? password_manager::CredentialType::CREDENTIAL_TYPE_FEDERATED
|
| - : password_manager::CredentialType::CREDENTIAL_TYPE_LOCAL);
|
| + : password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD);
|
| base::MessageLoop::current()->PostTask(FROM_HERE,
|
| base::Bind(callback, info));
|
| PromptUserToChooseCredentialsPtr(local_forms.get(), federated_forms.get(),
|
| @@ -215,7 +215,7 @@ class CredentialManagerDispatcherTest
|
|
|
| TEST_F(CredentialManagerDispatcherTest, CredentialManagerOnNotifyFailedSignIn) {
|
| CredentialInfo info;
|
| - info.type = CredentialType::CREDENTIAL_TYPE_LOCAL;
|
| + info.type = CredentialType::CREDENTIAL_TYPE_PASSWORD;
|
| dispatcher()->OnNotifyFailedSignIn(kRequestId, info);
|
|
|
| const uint32 kMsgID = CredentialManagerMsg_AcknowledgeFailedSignIn::ID;
|
| @@ -226,8 +226,8 @@ TEST_F(CredentialManagerDispatcherTest, CredentialManagerOnNotifyFailedSignIn) {
|
| }
|
|
|
| TEST_F(CredentialManagerDispatcherTest, CredentialManagerOnNotifySignedIn) {
|
| - CredentialInfo info(form_,
|
| - password_manager::CredentialType::CREDENTIAL_TYPE_LOCAL);
|
| + CredentialInfo info(
|
| + form_, password_manager::CredentialType::CREDENTIAL_TYPE_PASSWORD);
|
| EXPECT_CALL(
|
| *client_,
|
| PromptUserToSavePasswordPtr(
|
| @@ -260,7 +260,7 @@ TEST_F(CredentialManagerDispatcherTest, CredentialManagerOnNotifySignedIn) {
|
|
|
| TEST_F(CredentialManagerDispatcherTest,
|
| CredentialManagerSignInWithSavingDisabledForCurrentPage) {
|
| - CredentialInfo info(form_, CredentialType::CREDENTIAL_TYPE_LOCAL);
|
| + CredentialInfo info(form_, CredentialType::CREDENTIAL_TYPE_PASSWORD);
|
| EXPECT_CALL(*client_, IsSavingEnabledForCurrentPage())
|
| .WillRepeatedly(testing::Return(false));
|
| EXPECT_CALL(
|
| @@ -426,7 +426,7 @@ TEST_F(CredentialManagerDispatcherTest,
|
| EXPECT_TRUE(message);
|
| CredentialManagerMsg_SendCredential::Param send_param;
|
| CredentialManagerMsg_SendCredential::Read(message, &send_param);
|
| - EXPECT_EQ(CredentialType::CREDENTIAL_TYPE_LOCAL,
|
| + EXPECT_EQ(CredentialType::CREDENTIAL_TYPE_PASSWORD,
|
| base::get<1>(send_param).type);
|
| }
|
|
|
| @@ -480,7 +480,7 @@ TEST_F(CredentialManagerDispatcherTest,
|
|
|
| // We should get |origin_path_form_| back, as |form_| is marked as skipping
|
| // zero-click.
|
| - EXPECT_EQ(CredentialType::CREDENTIAL_TYPE_LOCAL,
|
| + EXPECT_EQ(CredentialType::CREDENTIAL_TYPE_PASSWORD,
|
| base::get<1>(send_param).type);
|
| EXPECT_EQ(origin_path_form_.username_value, base::get<1>(send_param).id);
|
| EXPECT_EQ(origin_path_form_.display_name, base::get<1>(send_param).name);
|
|
|