| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_AUTOFILL_MOCK_ADDRESS_ACCESSORY_CONTROLLER_H_ |
| #define CHROME_BROWSER_AUTOFILL_MOCK_ADDRESS_ACCESSORY_CONTROLLER_H_ |
| |
| #include "base/macros.h" |
| #include "chrome/browser/autofill/address_accessory_controller.h" |
| #include "components/autofill/core/browser/ui/accessory_sheet_data.h" |
| #include "components/autofill/core/browser/ui/accessory_sheet_enums.h" |
| #include "testing/gmock/include/gmock/gmock.h" |
| |
| class MockAddressAccessoryController |
| : public autofill::AddressAccessoryController { |
| public: |
| MockAddressAccessoryController(); |
| ~MockAddressAccessoryController() override; |
| |
| MOCK_METHOD1(OnFillingTriggered, void(const autofill::UserInfo::Field&)); |
| MOCK_METHOD1(OnOptionSelected, |
| void(autofill::AccessoryAction selected_action)); |
| MOCK_METHOD2(OnToggleChanged, |
| void(autofill::AccessoryAction toggled_action, bool enabled)); |
| MOCK_METHOD0(RefreshSuggestions, void()); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MockAddressAccessoryController); |
| }; |
| |
| #endif // CHROME_BROWSER_AUTOFILL_MOCK_ADDRESS_ACCESSORY_CONTROLLER_H_ |