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

Side by Side Diff: components/autofill/core/browser/validation_unittest.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/strings/utf_string_conversions.h" 5 #include "base/strings/utf_string_conversions.h"
6 #include "base/time.h" 6 #include "base/time.h"
7 #include "components/autofill/browser/validation.h" 7 #include "components/autofill/core/browser/validation.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 namespace { 11 namespace {
12 12
13 struct ExpirationDate { 13 struct ExpirationDate {
14 const char* year; 14 const char* year;
15 const char* month; 15 const char* month;
16 }; 16 };
17 17
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 ASCIIToUTF16(kVisaCVC), ASCIIToUTF16(kAmericanExpressCard))); 154 ASCIIToUTF16(kVisaCVC), ASCIIToUTF16(kAmericanExpressCard)));
155 EXPECT_FALSE(autofill::IsValidCreditCardSecurityCode( 155 EXPECT_FALSE(autofill::IsValidCreditCardSecurityCode(
156 ASCIIToUTF16(kAmericanExpressCVC), ASCIIToUTF16(kVisaCard))); 156 ASCIIToUTF16(kAmericanExpressCVC), ASCIIToUTF16(kVisaCard)));
157 EXPECT_TRUE(autofill::IsValidCreditCardSecurityCode( 157 EXPECT_TRUE(autofill::IsValidCreditCardSecurityCode(
158 ASCIIToUTF16(kVisaCVC), ASCIIToUTF16(kInvalidNumbers[0]))); 158 ASCIIToUTF16(kVisaCVC), ASCIIToUTF16(kInvalidNumbers[0])));
159 EXPECT_FALSE(autofill::IsValidCreditCardSecurityCode( 159 EXPECT_FALSE(autofill::IsValidCreditCardSecurityCode(
160 ASCIIToUTF16(kAmericanExpressCVC), ASCIIToUTF16(kInvalidNumbers[0]))); 160 ASCIIToUTF16(kAmericanExpressCVC), ASCIIToUTF16(kInvalidNumbers[0])));
161 } 161 }
162 162
163 } // namespace autofill 163 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/validation.cc ('k') | components/autofill/core/browser/webdata/autofill_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698