Index: components/autofill/core/browser/test_personal_data_manager.h |
diff --git a/components/autofill/core/browser/test_personal_data_manager.h b/components/autofill/core/browser/test_personal_data_manager.h |
index ac17657efb8dab2eb5ffb078a22d980d676db1f0..4db9dd634bde42b3be92d7a2d2a76e8b8c67982e 100644 |
--- a/components/autofill/core/browser/test_personal_data_manager.h |
+++ b/components/autofill/core/browser/test_personal_data_manager.h |
@@ -19,6 +19,10 @@ class TestPersonalDataManager : public PersonalDataManager { |
TestPersonalDataManager(); |
~TestPersonalDataManager() override; |
+ // Sets which PrefService to use and observe. |pref_service| is not owned by |
+ // this class and must outlive |this|. |
+ void SetTestingPrefService(PrefService* pref_service); |
+ |
// Adds |profile| to |profiles_|. This does not take ownership of |profile|. |
void AddTestingProfile(AutofillProfile* profile); |
@@ -26,6 +30,9 @@ class TestPersonalDataManager : public PersonalDataManager { |
// |credit_card|. |
void AddTestingCreditCard(CreditCard* credit_card); |
+ // Adds |credit_card| to |server_credit_cards_| by copying. |
+ void AddTestingServerCreditCard(const CreditCard& credit_card); |
+ |
const std::vector<AutofillProfile*>& GetProfiles() const override; |
const std::vector<AutofillProfile*>& web_profiles() const override; |
const std::vector<CreditCard*>& GetCreditCards() const override; |