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

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

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
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;

Powered by Google App Engine
This is Rietveld 408576698