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

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

Issue 112433004: Update uses of UTF conversions in chrome_frame/, chromeos/, components/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/memory/scoped_vector.h" 5 #include "base/memory/scoped_vector.h"
6 #include "base/strings/string16.h" 6 #include "base/strings/string16.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/autofill/core/browser/autofill_field.h" 8 #include "components/autofill/core/browser/autofill_field.h"
9 #include "components/autofill/core/browser/form_field.h" 9 #include "components/autofill/core/browser/form_field.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using base::ASCIIToUTF16;
13
12 namespace autofill { 14 namespace autofill {
13 15
14 TEST(FormFieldTest, Match) { 16 TEST(FormFieldTest, Match) {
15 AutofillField field; 17 AutofillField field;
16 18
17 // Empty strings match. 19 // Empty strings match.
18 EXPECT_TRUE(FormField::Match(&field, base::string16(), 20 EXPECT_TRUE(FormField::Match(&field, base::string16(),
19 FormField::MATCH_LABEL)); 21 FormField::MATCH_LABEL));
20 22
21 // Empty pattern matches non-empty string. 23 // Empty pattern matches non-empty string.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Checkable element shouldn't interfere with inference of Address line2. 145 // Checkable element shouldn't interfere with inference of Address line2.
144 EXPECT_EQ(2U, field_type_map.size()); 146 EXPECT_EQ(2U, field_type_map.size());
145 147
146 EXPECT_EQ(ADDRESS_HOME_LINE1, 148 EXPECT_EQ(ADDRESS_HOME_LINE1,
147 field_type_map.find(ASCIIToUTF16("Address line1"))->second); 149 field_type_map.find(ASCIIToUTF16("Address line1"))->second);
148 EXPECT_EQ(ADDRESS_HOME_LINE2, 150 EXPECT_EQ(ADDRESS_HOME_LINE2,
149 field_type_map.find(ASCIIToUTF16("Address line2"))->second); 151 field_type_map.find(ASCIIToUTF16("Address line2"))->second);
150 } 152 }
151 153
152 } // namespace autofill 154 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/form_field.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698