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 22169b0eb3d047521aaebca44a459b866f5f800f..eb4814f9c630495f75eb9c3dd9e7774fb99ed16d 100644 |
--- a/components/password_manager/core/browser/password_manager_unittest.cc |
+++ b/components/password_manager/core/browser/password_manager_unittest.cc |
@@ -279,7 +279,10 @@ TEST_F(PasswordManagerTest, FormSubmitWithOnlyNewPasswordField) { |
// This test is the same as FormSubmitEmptyStore, except that it simulates the |
// user entering credentials into a sign-up form that only has a new password |
// field. |
+ std::vector<PasswordForm*> result; // Empty password store. |
EXPECT_CALL(driver_, FillPasswordForm(_)).Times(Exactly(0)); |
+ EXPECT_CALL(*store_.get(), GetLogins(_, _, _)) |
+ .WillOnce(DoAll(WithArg<2>(InvokeConsumer(result)), Return())); |
std::vector<PasswordForm> observed; |
PasswordForm form(MakeFormWithOnlyNewPasswordField()); |
observed.push_back(form); |