Lines Matching refs:field_types
9 #include "chrome/browser/autofill/field_types.h"
25 std::vector<AutofillFieldType> field_types;
30 AutofillQueryXmlParser parse_handler(&field_types, &upload_required,
36 ASSERT_EQ(4U, field_types.size());
37 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
38 EXPECT_EQ(UNKNOWN_TYPE, field_types[1]);
39 EXPECT_EQ(NAME_FIRST, field_types[2]);
40 EXPECT_EQ(EMPTY_TYPE, field_types[3]);
46 std::vector<AutofillFieldType> field_types;
55 new AutofillQueryXmlParser(&field_types, &upload_required,
61 ASSERT_EQ(1U, field_types.size());
62 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
65 field_types.clear();
70 parse_handler.reset(new AutofillQueryXmlParser(&field_types, &upload_required,
76 ASSERT_EQ(1U, field_types.size());
77 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
80 field_types.clear();
85 parse_handler.reset(new AutofillQueryXmlParser(&field_types, &upload_required,
91 ASSERT_EQ(1U, field_types.size());
92 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
98 std::vector<AutofillFieldType> field_types;
109 new AutofillQueryXmlParser(&field_types, &upload_required,
115 ASSERT_EQ(1U, field_types.size());
116 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
119 field_types.clear();
126 parse_handler.reset(new AutofillQueryXmlParser(&field_types, &upload_required,
132 ASSERT_EQ(1U, field_types.size());
133 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
136 field_types.clear();
145 parse_handler.reset(new AutofillQueryXmlParser(&field_types, &upload_required,
151 ASSERT_EQ(1U, field_types.size());
152 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
158 std::vector<AutofillFieldType> field_types;
168 new AutofillQueryXmlParser(&field_types, &upload_required,
174 EXPECT_EQ(0U, field_types.size());
182 parse_handler.reset(new AutofillQueryXmlParser(&field_types, &upload_required,
188 ASSERT_EQ(1U, field_types.size());
190 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);
194 field_types.clear();
199 // Parse fails but an entry is still added to field_types.
200 parse_handler.reset(new AutofillQueryXmlParser(&field_types, &upload_required,
206 ASSERT_EQ(1U, field_types.size());
207 EXPECT_EQ(NO_SERVER_DATA, field_types[0]);