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

Unified Diff: components/autofill/core/browser/webdata/autofill_table_unittest.cc

Issue 870203002: Add status to server credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO Created 5 years, 11 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/webdata/autofill_table.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/webdata/autofill_table_unittest.cc
diff --git a/components/autofill/core/browser/webdata/autofill_table_unittest.cc b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
index dceac512d135fce0262b8f36a29b701c0f0c6a88..75eec072f4b7ac9523a5cfd3901ec561c77a7098 100644
--- a/components/autofill/core/browser/webdata/autofill_table_unittest.cc
+++ b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
@@ -1621,6 +1621,7 @@ TEST_F(AutofillTableTest, SetGetServerCards) {
inputs[1].SetRawInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR, ASCIIToUTF16("1997"));
inputs[1].SetRawInfo(CREDIT_CARD_NUMBER, ASCIIToUTF16("1111"));
inputs[1].SetTypeForMaskedCard(kVisaCard);
+ inputs[1].SetServerStatus(CreditCard::EXPIRED);
table_->SetServerCreditCards(inputs);
@@ -1643,6 +1644,9 @@ TEST_F(AutofillTableTest, SetGetServerCards) {
EXPECT_EQ(inputs[0], *outputs[0]);
EXPECT_EQ(inputs[1], *outputs[1]);
+ EXPECT_EQ(CreditCard::OK, outputs[0]->GetServerStatus());
+ EXPECT_EQ(CreditCard::EXPIRED, outputs[1]->GetServerStatus());
+
STLDeleteContainerPointers(outputs.begin(), outputs.end());
}
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698