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

Unified Diff: chrome/browser/autofill/autofill_credit_card_model_mac_unittest.mm

Issue 2873002: AutoFill Mac UI : Validation, CVC Removal, Credit Card year list. (Closed)
Patch Set: Sync with ToT Created 10 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: chrome/browser/autofill/autofill_credit_card_model_mac_unittest.mm
diff --git a/chrome/browser/autofill/autofill_credit_card_model_mac_unittest.mm b/chrome/browser/autofill/autofill_credit_card_model_mac_unittest.mm
index 6d77e2013afc2b2a52a189bdbb08c52d93b6960b..bb041ce73ebec6c37f754eb2fa6025f78cfaa3b7 100644
--- a/chrome/browser/autofill/autofill_credit_card_model_mac_unittest.mm
+++ b/chrome/browser/autofill/autofill_credit_card_model_mac_unittest.mm
@@ -45,7 +45,6 @@ TEST(AutoFillCreditCardModelTest, InitializationFromCreditCard) {
EXPECT_TRUE([[model creditCardNumber] isEqualToString:@"123456789012"]);
EXPECT_TRUE([[model expirationMonth] isEqualToString:@"01"]);
EXPECT_TRUE([[model expirationYear] isEqualToString:@"2010"]);
- EXPECT_TRUE([[model cvcCode] isEqualToString:@"123"]);
EXPECT_TRUE([[model billingAddress] isEqualToString:@"Chicago"]);
}
@@ -71,7 +70,6 @@ TEST(AutoFillCreditCardModelTest, CopyModelToCreditCard) {
[model setCreditCardNumber:@"223456789012"];
[model setExpirationMonth:@"11"];
[model setExpirationYear:@"2011"];
- [model setCvcCode:@"223"];
[model setBillingAddress:@"New York"];
[model copyModelToCreditCard:&credit_card];
@@ -86,9 +84,6 @@ TEST(AutoFillCreditCardModelTest, CopyModelToCreditCard) {
EXPECT_EQ(ASCIIToUTF16("2011"),
credit_card.GetFieldText(
AutoFillType(CREDIT_CARD_EXP_4_DIGIT_YEAR)));
- EXPECT_EQ(ASCIIToUTF16("223"),
- credit_card.GetFieldText(
- AutoFillType(CREDIT_CARD_VERIFICATION_CODE)));
EXPECT_EQ(ASCIIToUTF16("New York"), credit_card.billing_address());
}

Powered by Google App Engine
This is Rietveld 408576698