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

Side by Side Diff: components/autofill/core/browser/autofill_field_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/string_util.h" 5 #include "base/strings/string_util.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "components/autofill/browser/autofill_field.h" 7 #include "components/autofill/core/browser/autofill_field.h"
8 #include "components/autofill/browser/field_types.h" 8 #include "components/autofill/core/browser/field_types.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace autofill { 11 namespace autofill {
12 namespace { 12 namespace {
13 13
14 TEST(AutofillFieldTest, Type) { 14 TEST(AutofillFieldTest, Type) {
15 AutofillField field; 15 AutofillField field;
16 ASSERT_EQ(NO_SERVER_DATA, field.server_type()); 16 ASSERT_EQ(NO_SERVER_DATA, field.server_type());
17 ASSERT_EQ(UNKNOWN_TYPE, field.heuristic_type()); 17 ASSERT_EQ(UNKNOWN_TYPE, field.heuristic_type());
18 18
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 EXPECT_TRUE(field.IsFieldFillable()); 86 EXPECT_TRUE(field.IsFieldFillable());
87 87
88 // Both types set. 88 // Both types set.
89 field.set_heuristic_type(NAME_FIRST); 89 field.set_heuristic_type(NAME_FIRST);
90 field.set_server_type(NAME_LAST); 90 field.set_server_type(NAME_LAST);
91 EXPECT_TRUE(field.IsFieldFillable()); 91 EXPECT_TRUE(field.IsFieldFillable());
92 } 92 }
93 93
94 } // namespace 94 } // namespace
95 } // namespace autofill 95 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_field.cc ('k') | components/autofill/core/browser/autofill_ie_toolbar_import_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698