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

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

Issue 23882013: [rAc] Persist selection of newly added cards and addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests, add a test Created 7 years, 3 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 c9f9a43d4a44fab2020dd096f3a740a3e58cf716..9d6767a60827f61c511eaa45920d689d7b8f402a 100644
--- a/components/autofill/core/browser/test_personal_data_manager.h
+++ b/components/autofill/core/browser/test_personal_data_manager.h
@@ -27,16 +27,21 @@ class TestPersonalDataManager : public PersonalDataManager {
void AddTestingCreditCard(CreditCard* credit_card);
virtual const std::vector<AutofillProfile*>& GetProfiles() OVERRIDE;
- virtual void SaveImportedProfile(const AutofillProfile& imported_profile)
- OVERRIDE;
+ virtual const std::vector<CreditCard*>& GetCreditCards() const OVERRIDE;
+
+ virtual std::string SaveImportedProfile(
+ const AutofillProfile& imported_profile) OVERRIDE;
+ virtual std::string SaveImportedCreditCard(
+ const CreditCard& imported_credit_card) OVERRIDE;
const AutofillProfile& imported_profile() { return imported_profile_; }
- virtual const std::vector<CreditCard*>& GetCreditCards() const OVERRIDE;
+ const CreditCard& imported_credit_card() { return imported_credit_card_; }
private:
std::vector<AutofillProfile*> profiles_;
std::vector<CreditCard*> credit_cards_;
AutofillProfile imported_profile_;
+ CreditCard imported_credit_card_;
};
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698