Chromium Code Reviews| 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(), |
|
Dan Beam
2013/07/02 01:25:52
how can this CVC ever be empty in our code right n
ahutter
2013/07/02 15:44:23
Not sure... address upgrades should be possible wi
|
| + 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"); |