Index: components/autofill/core/browser/test_personal_data_manager.cc |
diff --git a/components/autofill/core/browser/test_personal_data_manager.cc b/components/autofill/core/browser/test_personal_data_manager.cc |
index c276e4f7aa0a0fb48bb4cb084a16d146ff6af9c0..cfc28b415766d7a5ccaf9dc917c103edebafe427 100644 |
--- a/components/autofill/core/browser/test_personal_data_manager.cc |
+++ b/components/autofill/core/browser/test_personal_data_manager.cc |
@@ -13,6 +13,10 @@ TestPersonalDataManager::TestPersonalDataManager() |
TestPersonalDataManager::~TestPersonalDataManager() {} |
+void TestPersonalDataManager::SetTestingPrefService(PrefService* pref_service) { |
+ SetPrefService(pref_service); |
+} |
+ |
void TestPersonalDataManager::AddTestingProfile(AutofillProfile* profile) { |
profiles_.push_back(profile); |
NotifyPersonalDataChanged(); |
@@ -23,6 +27,11 @@ void TestPersonalDataManager::AddTestingCreditCard(CreditCard* credit_card) { |
NotifyPersonalDataChanged(); |
} |
+void TestPersonalDataManager::AddTestingServerCreditCard( |
+ const CreditCard& credit_card) { |
+ server_credit_cards_.push_back(new CreditCard(credit_card)); |
+} |
+ |
const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles() |
const { |
return profiles_; |