diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 16:52:41 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 16:52:41 +0000 |
commit | f9fa12f17d64eb13cec69fc45377b04c4f1a42e7 (patch) | |
tree | 087b385fb166318a0ff111fba7237d5a7ee3497c /chrome/browser/autofill/credit_card_unittest.cc | |
parent | da5e928443fbf5b469b475e0f7be01f69a4851b2 (diff) | |
download | chromium_src-f9fa12f17d64eb13cec69fc45377b04c4f1a42e7.zip chromium_src-f9fa12f17d64eb13cec69fc45377b04c4f1a42e7.tar.gz chromium_src-f9fa12f17d64eb13cec69fc45377b04c4f1a42e7.tar.bz2 |
Don't use the empty string to try to match against an empty text field. Add FormField::ParseEmptyText which encapsulates matching an empty text field.
BUG=38264
TEST=FormStructureTest.HeuristicsSample6
Review URL: http://codereview.chromium.org/994002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/credit_card_unittest.cc')
-rw-r--r-- | chrome/browser/autofill/credit_card_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/autofill/credit_card_unittest.cc b/chrome/browser/autofill/credit_card_unittest.cc index 72b2a993..53df1fc 100644 --- a/chrome/browser/autofill/credit_card_unittest.cc +++ b/chrome/browser/autofill/credit_card_unittest.cc @@ -16,7 +16,7 @@ TEST(CreditCardTest, PreviewSummaryString) { // Case 0: empty credit card. CreditCard credit_card0(string16(), 0); string16 summary0 = credit_card0.PreviewSummary(); - EXPECT_EQ(summary0, string16(ASCIIToUTF16(""))); + EXPECT_EQ(summary0, string16()); // Case 00: Empty credit card with empty strings. CreditCard credit_card00(string16(), 0); @@ -32,7 +32,7 @@ TEST(CreditCardTest, PreviewSummaryString) { "Chicago", "Indianapolis"); string16 summary00 = credit_card00.PreviewSummary(); - EXPECT_EQ(summary00, string16(ASCIIToUTF16(""))); + EXPECT_EQ(summary00, string16()); // Case 1: No credit card number. CreditCard credit_card1(string16(), 0); @@ -48,7 +48,7 @@ TEST(CreditCardTest, PreviewSummaryString) { "Chicago", "Indianapolis"); string16 summary1 = credit_card1.PreviewSummary(); - EXPECT_EQ(summary1, string16(ASCIIToUTF16(""))); + EXPECT_EQ(summary1, string16()); // Case 2: No month. CreditCard credit_card2(string16(), 0); |