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

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: Updated histograms.xml Created 7 years, 6 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 8360e1a04505a01e5f59147ca5e9635933f53255..5237d8e16145f10767ae47a6912d62b9045f2bf0 100644
--- a/components/autofill/content/browser/wallet/wallet_test_util.cc
+++ b/components/autofill/content/browser/wallet/wallet_test_util.cc
@@ -103,6 +103,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");

Powered by Google App Engine
This is Rietveld 408576698