Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: components/autofill/core/browser/test_personal_data_manager.cc

Issue 1138373002: Autofill: Fix WalletIntegrationAvailable() regression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pay_07_check_wallet_available_03
Patch Set: Add missing dep for GN build. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/autofill/core/browser/test_personal_data_manager.h ('k') | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « components/autofill/core/browser/test_personal_data_manager.h ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698