| Index: chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| index 71e262aa36d1f5a6e5a69a561fadf426267bfb25..122bcd9081e6ee0d1fa250f97980ac7291e90ea5 100644
|
| --- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
|
| @@ -47,7 +47,9 @@ class MockAutofillExternalDelegate : public AutofillExternalDelegate {
|
|
|
| void DidSelectSuggestion(const base::string16& value,
|
| int identifier) override {}
|
| - void RemoveSuggestion(const base::string16& value, int identifier) override {}
|
| + bool RemoveSuggestion(const base::string16& value, int identifier) override {
|
| + return true;
|
| + }
|
| void ClearPreviewedForm() override {}
|
| base::WeakPtr<AutofillExternalDelegate> GetWeakPtr() {
|
| return AutofillExternalDelegate::GetWeakPtr();
|
| @@ -248,12 +250,6 @@ TEST_F(AutofillPopupControllerUnitTest, RemoveLine) {
|
| // No line is selected so the removal should fail.
|
| EXPECT_FALSE(autofill_popup_controller_->RemoveSelectedLine());
|
|
|
| - // Try to remove the last entry and ensure it fails (it is an option).
|
| - autofill_popup_controller_->SetSelectedLine(
|
| - autofill_popup_controller_->GetLineCount() - 1);
|
| - EXPECT_FALSE(autofill_popup_controller_->RemoveSelectedLine());
|
| - EXPECT_LE(0, autofill_popup_controller_->selected_line());
|
| -
|
| // Remove the first entry. The popup should be redrawn since its size has
|
| // changed.
|
| EXPECT_CALL(*autofill_popup_controller_, UpdateBoundsAndRedrawPopup());
|
|
|