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

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

Issue 20420002: Make Wallet respect whether or not shipping address is required. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wallet client respects delegates shipping preference. 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
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de2538a46de5f86406a02d176afec42bf43bc715..15f916afdc0f77a9441e60b78d3c53691e990598 100644
--- a/components/autofill/content/browser/wallet/wallet_test_util.cc
+++ b/components/autofill/content/browser/wallet/wallet_test_util.cc
@@ -96,6 +96,20 @@ scoped_ptr<FullWallet> GetTestFullWallet() {
return wallet.Pass();
}
+scoped_ptr<FullWallet> GetTestFullWalletInstrumentOnly() {
+ scoped_ptr<FullWallet> wallet(new FullWallet(FutureYear(),
+ 12,
+ "528512",
+ "5ec4feecf9d6",
+ GetTestAddress(),
+ scoped_ptr<Address>(),
+ std::vector<RequiredAction>()));
+ std::vector<uint8> one_time_pad;
+ base::HexStringToBytes("5F04A8704183", &one_time_pad);
+ wallet->set_one_time_pad(one_time_pad);
+ return wallet.Pass();
+}
+
scoped_ptr<Instrument> GetTestInstrument() {
return scoped_ptr<Instrument>(new Instrument(ASCIIToUTF16("4444444444444448"),
ASCIIToUTF16("123"),
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698