Index: components/autofill/core/browser/autofill_external_delegate_unittest.cc |
diff --git a/components/autofill/core/browser/autofill_external_delegate_unittest.cc b/components/autofill/core/browser/autofill_external_delegate_unittest.cc |
index ae863ca6a387569326da97fb65216acec7743347..286b1e1cdd4d531bf663b4c55c6ba415607d08c9 100644 |
--- a/components/autofill/core/browser/autofill_external_delegate_unittest.cc |
+++ b/components/autofill/core/browser/autofill_external_delegate_unittest.cc |
@@ -351,7 +351,7 @@ TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegateInvalidUniqueId) { |
EXPECT_CALL(*autofill_driver_, |
SetRendererActionOnFormDataReception(_)).Times(0); |
EXPECT_CALL(*autofill_driver_, RendererShouldClearPreviewedForm()).Times(1); |
- external_delegate_->DidSelectSuggestion(-1); |
+ external_delegate_->DidPreselectSuggestion(-1); |
// Ensure it doesn't try to fill the form in with the negative id. |
EXPECT_CALL(manager_delegate_, HideAutofillPopup()); |
@@ -364,19 +364,19 @@ TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegateInvalidUniqueId) { |
// Test that the ClearPreview call is only sent if the form was being previewed |
// (i.e. it isn't autofilling a password). |
TEST_F(AutofillExternalDelegateUnitTest, ExternalDelegateClearPreviewedForm) { |
- // Called by DidSelectSuggestion, add expectation to remove warning. |
+ // Called by DidPreselectSuggestion, add expectation to remove warning. |
EXPECT_CALL(*autofill_manager_, OnFillAutofillFormData(_, _, _, _)); |
- // Ensure selecting a new password entries or Autofill entries will |
+ // Ensure preselecting a new password entries or Autofill entries will |
// cause any previews to get cleared. |
EXPECT_CALL(*autofill_driver_, RendererShouldClearPreviewedForm()).Times(1); |
- external_delegate_->DidSelectSuggestion( |
+ external_delegate_->DidPreselectSuggestion( |
WebAutofillClient::MenuItemIDPasswordEntry); |
EXPECT_CALL(*autofill_driver_, RendererShouldClearPreviewedForm()).Times(1); |
EXPECT_CALL(*autofill_driver_, SetRendererActionOnFormDataReception( |
AutofillDriver::FORM_DATA_ACTION_PREVIEW)); |
- external_delegate_->DidSelectSuggestion(1); |
+ external_delegate_->DidPreselectSuggestion(1); |
} |
// Test that the popup is hidden once we are done editing the autofill field. |