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

Unified Diff: components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc

Issue 1926553002: Prompt for expiration date for local cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify the test cases Created 4 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
« no previous file with comments | « components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc
diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc
index be69a9952303731af7f7c74a84eba557ff46ca01..b6c39f3c40d9535305073bc21cf4c8915c8caa9d 100644
--- a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc
+++ b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc
@@ -114,7 +114,7 @@ class CardUnmaskPromptControllerImplTest : public testing::Test {
ShowPrompt();
controller_->OnUnmaskResponse(ASCIIToUTF16("444"),
ASCIIToUTF16("01"),
- ASCIIToUTF16("2015"),
+ ASCIIToUTF16("2050"),
should_store_pan);
EXPECT_EQ(
should_store_pan,
@@ -213,7 +213,7 @@ TEST_F(CardUnmaskPromptControllerImplTest, LogUnmaskedCardAfterFailure) {
controller_->OnVerificationResult(AutofillClient::TRY_AGAIN_FAILURE);
controller_->OnUnmaskResponse(ASCIIToUTF16("444"),
ASCIIToUTF16("01"),
- ASCIIToUTF16("2015"),
+ ASCIIToUTF16("2050"),
false /* should_store_pan */);
base::HistogramTester histogram_tester;
@@ -366,7 +366,7 @@ TEST_F(CardUnmaskPromptControllerImplTest,
controller_->OnVerificationResult(AutofillClient::TRY_AGAIN_FAILURE);
controller_->OnUnmaskResponse(
base::ASCIIToUTF16("444"), base::ASCIIToUTF16("01"),
- base::ASCIIToUTF16("2015"), false /* should_store_pan */);
+ base::ASCIIToUTF16("2050"), false /* should_store_pan */);
base::HistogramTester histogram_tester;
controller_->OnVerificationResult(AutofillClient::SUCCESS);
@@ -456,7 +456,8 @@ TEST_F(CardUnmaskPromptControllerImplTest, CvcInputValidation) {
continue;
controller_->OnUnmaskResponse(ASCIIToUTF16(cvc_cases[i].input),
- base::string16(), base::string16(), false);
+ ASCIIToUTF16("1"), ASCIIToUTF16("2050"),
+ false);
EXPECT_EQ(ASCIIToUTF16(cvc_cases[i].canonicalized_input),
delegate_->response().cvc);
}
« no previous file with comments | « components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698