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

Unified Diff: components/password_manager/core/browser/password_manager_unittest.cc

Issue 1730313004: Remove PasswordStore::AuthorizationPromptPolicy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: components/password_manager/core/browser/password_manager_unittest.cc
diff --git a/components/password_manager/core/browser/password_manager_unittest.cc b/components/password_manager/core/browser/password_manager_unittest.cc
index 4d953e31ccf7d4d91b62eff6d8a9240d5056ca6b..a0a6f7bea9f63959a98325ef5eaf3c2cce93f25d 100644
--- a/components/password_manager/core/browser/password_manager_unittest.cc
+++ b/components/password_manager/core/browser/password_manager_unittest.cc
@@ -257,8 +257,8 @@ TEST_F(PasswordManagerTest, FormSubmitWithOnlyNewPasswordField) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeFormWithOnlyNewPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -295,8 +295,8 @@ TEST_F(PasswordManagerTest, GeneratedPasswordFormSubmitEmptyStore) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeFormWithOnlyNewPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -337,8 +337,8 @@ TEST_F(PasswordManagerTest, FormSubmitNoGoodMatch) {
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
EXPECT_CALL(driver_, FillPasswordForm(_)).Times(2);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeConsumer(existing_different)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(existing_different)));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
EXPECT_CALL(client_, IsSavingAndFillingEnabledForCurrentPage())
@@ -367,8 +367,8 @@ TEST_F(PasswordManagerTest, FormSeenThenLeftPage) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -385,8 +385,8 @@ TEST_F(PasswordManagerTest, FormSubmit) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -424,8 +424,8 @@ TEST_F(PasswordManagerTest, FormSubmitWithFormOnPreviousPage) {
// Pretend that the form is hidden on the first page.
std::vector<PasswordForm> observed;
observed.push_back(first_form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
observed.clear();
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -467,8 +467,8 @@ TEST_F(PasswordManagerTest, FormSubmitInvisibleLogin) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -500,8 +500,8 @@ TEST_F(PasswordManagerTest, InitiallyInvisibleForm) {
std::vector<PasswordForm> observed;
observed.push_back(form);
EXPECT_CALL(driver_, FillPasswordForm(_));
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeConsumer(form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(form)));
manager()->OnPasswordFormsParsed(&driver_, observed);
observed.clear();
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -517,8 +517,8 @@ TEST_F(PasswordManagerTest, FillPasswordsOnDisabledManager) {
std::vector<PasswordForm> observed;
observed.push_back(form);
EXPECT_CALL(driver_, FillPasswordForm(_));
- EXPECT_CALL(*store_, GetLogins(_, PasswordStore::DISALLOW_PROMPT, _))
- .WillOnce(WithArg<2>(InvokeConsumer(form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(form)));
manager()->OnPasswordFormsParsed(&driver_, observed);
}
@@ -540,8 +540,8 @@ TEST_F(PasswordManagerTest, PasswordFormReappearance) {
std::vector<PasswordForm> observed;
PasswordForm login_form(MakeTwitterLoginForm());
observed.push_back(login_form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -567,8 +567,8 @@ TEST_F(PasswordManagerTest, SyncCredentialsNotSaved) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -592,8 +592,8 @@ TEST_F(PasswordManagerTest, SyncCredentialsNotSaved) {
// stored version of it, PasswordManager should not drop that password.
TEST_F(PasswordManagerTest, SyncCredentialsNotDroppedIfUpToDate) {
PasswordForm form(MakeSimpleForm());
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeConsumer(form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeConsumer(form)));
client_.FilterAllResultsForSaving();
@@ -624,8 +624,8 @@ TEST_F(PasswordManagerTest, SyncCredentialsDroppedWhenObsolete) {
PasswordForm form(MakeSimpleForm());
form.password_value = ASCIIToUTF16("old pa55word");
// Pretend that the password store contains "old pa55word" stored for |form|.
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeConsumer(form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeConsumer(form)));
// Load the page, pretend the password was updated.
PasswordForm updated_form(form);
@@ -658,8 +658,8 @@ TEST_F(PasswordManagerTest, SyncCredentialsDroppedWhenObsolete) {
TEST_F(PasswordManagerTest, SyncCredentialsStillFilled) {
PasswordForm form(MakeSimpleForm());
// Pretend that the password store contains credentials stored for |form|.
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeConsumer(form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeConsumer(form)));
client_.FilterAllResultsForSaving();
@@ -690,8 +690,8 @@ TEST_F(PasswordManagerTest,
std::vector<PasswordForm> observed;
observed.push_back(first_form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -723,8 +723,8 @@ TEST_F(PasswordManagerTest, DoNotSaveWithEmptyNewPasswordAndNonemptyPassword) {
form.new_password_element = ASCIIToUTF16("new_password_element");
form.new_password_value.clear();
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -758,8 +758,8 @@ TEST_F(PasswordManagerTest, FormSubmitWithOnlyPasswordField) {
// Loads passsword form without username input field.
PasswordForm form(MakeSimpleFormWithOnlyPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -792,8 +792,8 @@ TEST_F(PasswordManagerTest, FillPasswordOnManyFrames) {
std::vector<PasswordForm> observed;
observed.push_back(form);
EXPECT_CALL(driver_, FillPasswordForm(_));
- EXPECT_CALL(*store_, GetLogins(_, PasswordStore::DISALLOW_PROMPT, _))
- .WillOnce(WithArg<2>(InvokeConsumer(form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(form)));
manager()->OnPasswordFormsParsed(&driver_, observed);
// Now the form will be seen the second time, in a different frame. The driver
@@ -801,7 +801,7 @@ TEST_F(PasswordManagerTest, FillPasswordOnManyFrames) {
// for it again.
MockPasswordManagerDriver driver_b;
EXPECT_CALL(driver_b, FillPasswordForm(_));
- EXPECT_CALL(*store_, GetLogins(_, _, _)).Times(0);
+ EXPECT_CALL(*store_, GetLogins(_, _)).Times(0);
manager()->OnPasswordFormsParsed(&driver_b, observed);
}
@@ -811,8 +811,8 @@ TEST_F(PasswordManagerTest, InPageNavigation) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -843,8 +843,8 @@ TEST_F(PasswordManagerTest, InPageNavigationBlacklistedSite) {
PasswordForm blacklisted_form(form);
blacklisted_form.username_value = ASCIIToUTF16("");
blacklisted_form.blacklisted_by_user = true;
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeConsumer(blacklisted_form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(blacklisted_form)));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -873,8 +873,8 @@ TEST_F(PasswordManagerTest, SavingSignupForms_NoHTMLMatch) {
wrong_action_form.action = GURL("http://www.google.com/other/action");
observed.push_back(wrong_action_form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -933,8 +933,8 @@ TEST_F(PasswordManagerTest, SavingSignupForms_NoActionMatch) {
wrong_submit_form.password_value.clear();
observed.push_back(wrong_submit_form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -981,8 +981,8 @@ TEST_F(PasswordManagerTest, FormSubmittedChangedWithAutofillResponse) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1023,8 +1023,8 @@ TEST_F(PasswordManagerTest, FormSubmittedUnchangedNotifiesClient) {
PasswordForm form(MakeSimpleForm());
observed.push_back(form);
EXPECT_CALL(driver_, FillPasswordForm(_)).Times(2);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeConsumer(form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(form)));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1058,7 +1058,7 @@ TEST_F(PasswordManagerTest, SaveFormFetchedAfterSubmit) {
PasswordStoreConsumer* form_manager = nullptr;
// No call-back from store after GetLogins is called emulates that
// PasswordStore did not fetch a form in time before submission.
- EXPECT_CALL(*store_, GetLogins(_, _, _)).WillOnce(SaveArg<2>(&form_manager));
+ EXPECT_CALL(*store_, GetLogins(_, _)).WillOnce(SaveArg<1>(&form_manager));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1096,8 +1096,8 @@ TEST_F(PasswordManagerTest, PasswordGenerationForceSaving) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeFormWithOnlyNewPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1131,8 +1131,8 @@ TEST_F(PasswordManagerTest, PasswordGenerationPasswordEdited) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeFormWithOnlyNewPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1172,8 +1172,8 @@ TEST_F(PasswordManagerTest,
std::vector<PasswordForm> observed;
PasswordForm form(MakeFormWithOnlyNewPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1204,8 +1204,8 @@ TEST_F(PasswordManagerTest,
std::vector<PasswordForm> observed;
PasswordForm form(MakeFormWithOnlyNewPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1237,8 +1237,8 @@ TEST_F(PasswordManagerTest, PasswordGenerationUsernameChanged) {
std::vector<PasswordForm> observed;
PasswordForm form(MakeFormWithOnlyNewPasswordField());
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1277,8 +1277,8 @@ TEST_F(PasswordManagerTest, ForceSavingPasswords) {
std::vector<PasswordForm> observed;
observed.push_back(form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1308,8 +1308,8 @@ TEST_F(PasswordManagerTest, ForceSavingPasswords_Empty) {
std::vector<PasswordForm> observed;
observed.push_back(empty_password_form);
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillRepeatedly(WithArg<2>(InvokeEmptyConsumerWithForms()));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillRepeatedly(WithArg<1>(InvokeEmptyConsumerWithForms()));
manager()->OnPasswordFormsParsed(&driver_, observed);
manager()->OnPasswordFormsRendered(&driver_, observed, true);
@@ -1324,7 +1324,7 @@ TEST_F(PasswordManagerTest, UpdateFormManagers) {
// querying PasswordStore. Calling UpdateFormManagers should result in
// querying the store again.
PasswordStoreConsumer* consumer = nullptr;
- EXPECT_CALL(*store_, GetLogins(_, _, _)).WillOnce(SaveArg<2>(&consumer));
+ EXPECT_CALL(*store_, GetLogins(_, _)).WillOnce(SaveArg<1>(&consumer));
PasswordForm form;
std::vector<PasswordForm> observed;
@@ -1335,7 +1335,7 @@ TEST_F(PasswordManagerTest, UpdateFormManagers) {
// to first send a response from the store (to be ignored).
ASSERT_TRUE(consumer);
consumer->OnGetPasswordStoreResults(ScopedVector<PasswordForm>());
- EXPECT_CALL(*store_, GetLogins(_, _, _));
+ EXPECT_CALL(*store_, GetLogins(_, _));
manager()->UpdateFormManagers();
}
@@ -1347,8 +1347,8 @@ TEST_F(PasswordManagerTest, AutofillingOfAffiliatedCredentials) {
autofill::PasswordFormFillData form_data;
EXPECT_CALL(driver_, FillPasswordForm(_)).WillOnce(SaveArg<0>(&form_data));
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeConsumer(android_form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(android_form)));
manager()->OnPasswordFormsParsed(&driver_, observed_forms);
observed_forms.clear();
manager()->OnPasswordFormsRendered(&driver_, observed_forms, true);
@@ -1393,8 +1393,8 @@ TEST_F(PasswordManagerTest, UpdatePasswordOfAffiliatedCredential) {
autofill::PasswordFormFillData form_data;
EXPECT_CALL(driver_, FillPasswordForm(_)).WillOnce(SaveArg<0>(&form_data));
- EXPECT_CALL(*store_, GetLogins(_, _, _))
- .WillOnce(WithArg<2>(InvokeConsumer(android_form)));
+ EXPECT_CALL(*store_, GetLogins(_, _))
+ .WillOnce(WithArg<1>(InvokeConsumer(android_form)));
manager()->OnPasswordFormsParsed(&driver_, observed_forms);
observed_forms.clear();
manager()->OnPasswordFormsRendered(&driver_, observed_forms, true);

Powered by Google App Engine
This is Rietveld 408576698