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

Unified Diff: components/autofill/browser/wallet/full_wallet_unittest.cc

Issue 14425010: Handle expired Autofill credit cards in autofill dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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/browser/wallet/full_wallet_unittest.cc
diff --git a/components/autofill/browser/wallet/full_wallet_unittest.cc b/components/autofill/browser/wallet/full_wallet_unittest.cc
index f3229337101cd00451d7304bf39a2651bba34b04..9ab93a0e284cf67c11b6946c433b6504e26ba76a 100644
--- a/components/autofill/browser/wallet/full_wallet_unittest.cc
+++ b/components/autofill/browser/wallet/full_wallet_unittest.cc
@@ -18,7 +18,7 @@ namespace {
const char kFullWalletValidResponse[] =
"{"
" \"expiration_month\":12,"
- " \"expiration_year\":2012,"
+ " \"expiration_year\":3000,"
" \"iin\":\"iin\","
" \"rest\":\"rest\","
" \"billing_address\":"
@@ -35,7 +35,7 @@ const char kFullWalletValidResponse[] =
" \"locality_name\":\"locality_name\","
" \"administrative_area_name\":\"admin_area_name\","
" \"postal_code_number\":\"postal_code_number\","
- " \"country_name_code\":\"country_name_code\""
+ " \"country_name_code\":\"US\""
" }"
" },"
" \"shipping_address\":"
@@ -53,7 +53,7 @@ const char kFullWalletValidResponse[] =
" \"locality_name\":\"ship_locality_name\","
" \"administrative_area_name\":\"ship_admin_area_name\","
" \"postal_code_number\":\"ship_postal_code_number\","
- " \"country_name_code\":\"ship_country_name_code\""
+ " \"country_name_code\":\"US\""
" }"
" },"
" \"required_action\":"
@@ -430,7 +430,7 @@ TEST_F(FullWalletTest, CreateFullWallet) {
SetUpDictionary(kFullWalletValidResponse);
std::vector<RequiredAction> required_actions;
FullWallet full_wallet(12,
- 2012,
+ 3000,
"iin",
"rest",
GetTestAddress(),
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | components/autofill/browser/wallet/instrument_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698