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

Side by Side Diff: chrome/browser/autofill/credit_card_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/autofill/autofill_common_unittest.h" 7 #include "chrome/browser/autofill/autofill_common_unittest.h"
7 #include "chrome/browser/autofill/credit_card.h" 8 #include "chrome/browser/autofill/credit_card.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace { 11 namespace {
11 12
12 // Tests credit card summary string generation. This test simulates a variety 13 // Tests credit card summary string generation. This test simulates a variety
13 // of different possible summary strings. Variations occur based on the 14 // of different possible summary strings. Variations occur based on the
14 // existence of credit card number, month, and year fields. 15 // existence of credit card number, month, and year fields.
15 TEST(CreditCardTest, PreviewSummaryAndObfuscatedNumberStrings) { 16 TEST(CreditCardTest, PreviewSummaryAndObfuscatedNumberStrings) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 autofill_unittest::SetCreditCardInfo(&credit_card4, "Corporate", 62 autofill_unittest::SetCreditCardInfo(&credit_card4, "Corporate",
62 "John Dillinger", "Visa", "123456789012", "01", "2010", "Chicago"); 63 "John Dillinger", "Visa", "123456789012", "01", "2010", "Chicago");
63 string16 summary4 = credit_card4.PreviewSummary(); 64 string16 summary4 = credit_card4.PreviewSummary();
64 EXPECT_EQ(string16(ASCIIToUTF16("************9012, Exp: 01/2010")), summary4); 65 EXPECT_EQ(string16(ASCIIToUTF16("************9012, Exp: 01/2010")), summary4);
65 string16 obfuscated4 = credit_card4.ObfuscatedNumber(); 66 string16 obfuscated4 = credit_card4.ObfuscatedNumber();
66 EXPECT_EQ(string16(ASCIIToUTF16("************9012")), obfuscated4); 67 EXPECT_EQ(string16(ASCIIToUTF16("************9012")), obfuscated4);
67 } 68 }
68 69
69 } // namespace 70 } // namespace
70 71
OLDNEW
« no previous file with comments | « chrome/browser/autofill/credit_card_field_unittest.cc ('k') | chrome/browser/autofill/fax_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698