1 // Copyright 2019 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_MOCK_PERSONAL_DATA_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_MOCK_PERSONAL_DATA_MANAGER_H_ 7 8 #include <memory> 9 #include <string> 10 #include <vector> 11 12 #include "components/autofill/core/browser/personal_data_manager.h" 13 #include "testing/gmock/include/gmock/gmock.h" 14 15 namespace autofill_assistant { 16 17 class MockPersonalDataManager : public autofill::PersonalDataManager { 18 public: 19 MockPersonalDataManager(); 20 ~MockPersonalDataManager() override; 21 22 MOCK_METHOD1(SaveImportedProfile, 23 std::string(const autofill::AutofillProfile&)); 24 MOCK_METHOD1(GetProfileByGUID, 25 autofill::AutofillProfile*(const std::string&)); 26 MOCK_CONST_METHOD0(GetProfiles, std::vector<autofill::AutofillProfile*>()); 27 MOCK_CONST_METHOD0(GetCreditCards, std::vector<autofill::CreditCard*>()); 28 MOCK_CONST_METHOD0(IsAutofillProfileEnabled, bool()); 29 MOCK_CONST_METHOD0(IsAutofillCreditCardEnabled, bool()); 30 MOCK_CONST_METHOD0(ShouldSuggestServerCards, bool()); 31 }; 32 33 } // namespace autofill_assistant 34 35 #endif // COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_MOCK_PERSONAL_DATA_MANAGER_H_ 36