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

Unified Diff: components/autofill/content/browser/wallet/wallet_test_util.cc

Issue 17970003: New encryption/escrow endpoints for Wallet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing again... Created 7 years, 5 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/content/browser/wallet/wallet_test_util.cc
diff --git a/components/autofill/content/browser/wallet/wallet_test_util.cc b/components/autofill/content/browser/wallet/wallet_test_util.cc
index ddc9e0ec88327fb7277ce52be1b3f66c4b15ed86..de2538a46de5f86406a02d176afec42bf43bc715 100644
--- a/components/autofill/content/browser/wallet/wallet_test_util.cc
+++ b/components/autofill/content/browser/wallet/wallet_test_util.cc
@@ -105,6 +105,39 @@ scoped_ptr<Instrument> GetTestInstrument() {
GetTestAddress()));
}
+scoped_ptr<Instrument> GetTestAddressUpgradeInstrument() {
+ scoped_ptr<Instrument> instrument(new Instrument(base::string16(),
+ base::string16(),
+ 0,
+ 0,
+ Instrument::UNKNOWN,
+ GetTestAddress()));
+ instrument->set_object_id("instrument_id");
+ return instrument.Pass();
+}
+
+scoped_ptr<Instrument> GetTestExpirationDateChangeInstrument() {
+ scoped_ptr<Instrument> instrument(new Instrument(base::string16(),
+ ASCIIToUTF16("123"),
+ 12,
+ FutureYear(),
+ Instrument::UNKNOWN,
+ scoped_ptr<Address>()));
+ instrument->set_object_id("instrument_id");
+ return instrument.Pass();
+}
+
+scoped_ptr<Instrument> GetTestAddressNameChangeInstrument() {
+ scoped_ptr<Instrument> instrument(new Instrument(base::string16(),
+ ASCIIToUTF16("123"),
+ 0,
+ 0,
+ Instrument::UNKNOWN,
+ GetTestAddress()));
+ instrument->set_object_id("instrument_id");
+ return instrument.Pass();
+}
+
scoped_ptr<WalletItems::LegalDocument> GetTestLegalDocument() {
base::DictionaryValue dict;
dict.SetString("legal_document_id", "document_id");
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_test_util.h ('k') | components/autofill/core/browser/autofill_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698