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

Side by Side Diff: chrome/browser/autofill/autofill_field_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/string_util.h" 5 #include "base/string_util.h"
6 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/autofill/autofill_field.h" 7 #include "chrome/browser/autofill/autofill_field.h"
7 #include "chrome/browser/autofill/field_types.h" 8 #include "chrome/browser/autofill/field_types.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 TEST(AutoFillFieldTest, Type) { 13 TEST(AutoFillFieldTest, Type) {
13 AutoFillField field; 14 AutoFillField field;
14 ASSERT_EQ(NO_SERVER_DATA, field.server_type()); 15 ASSERT_EQ(NO_SERVER_DATA, field.server_type());
15 ASSERT_EQ(UNKNOWN_TYPE, field.heuristic_type()); 16 ASSERT_EQ(UNKNOWN_TYPE, field.heuristic_type());
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 field.set_server_type(NAME_LAST); 84 field.set_server_type(NAME_LAST);
84 EXPECT_TRUE(field.IsFieldFillable()); 85 EXPECT_TRUE(field.IsFieldFillable());
85 86
86 // Both types set. 87 // Both types set.
87 field.set_heuristic_type(NAME_FIRST); 88 field.set_heuristic_type(NAME_FIRST);
88 field.set_server_type(NAME_LAST); 89 field.set_server_type(NAME_LAST);
89 EXPECT_TRUE(field.IsFieldFillable()); 90 EXPECT_TRUE(field.IsFieldFillable());
90 } 91 }
91 92
92 } // namespace 93 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_download_unittest.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698