Home | History | Annotate | Download | only in autofill

Lines Matching defs:field

14   AutofillField field;
15 ASSERT_EQ(NO_SERVER_DATA, field.server_type());
16 ASSERT_EQ(UNKNOWN_TYPE, field.heuristic_type());
19 EXPECT_EQ(UNKNOWN_TYPE, field.type());
22 field.set_heuristic_type(NAME_FIRST);
23 EXPECT_EQ(NAME_FIRST, field.type());
26 field.set_server_type(ADDRESS_BILLING_LINE1);
27 EXPECT_EQ(ADDRESS_BILLING_LINE1, field.type());
30 field.set_server_type(NO_SERVER_DATA);
31 EXPECT_EQ(NAME_FIRST, field.type());
35 AutofillField field;
36 ASSERT_EQ(string16(), field.value);
38 // Field value is empty.
39 EXPECT_TRUE(field.IsEmpty());
41 // Field value is non-empty.
42 field.value = ASCIIToUTF16("Value");
43 EXPECT_FALSE(field.IsEmpty());
47 AutofillField field;
48 ASSERT_EQ(string16(), field.name);
49 ASSERT_EQ(string16(), field.form_control_type);
52 EXPECT_EQ("2085434232", field.FieldSignature());
54 // Field name is set.
55 field.name = ASCIIToUTF16("Name");
56 EXPECT_EQ("1606968241", field.FieldSignature());
58 // Field form control type is set.
59 field.form_control_type = ASCIIToUTF16("Text");
60 EXPECT_EQ("4246049809", field.FieldSignature());
63 field.set_heuristic_type(NAME_FIRST);
64 EXPECT_EQ("4246049809", field.FieldSignature());
67 field.set_server_type(NAME_LAST);
68 EXPECT_EQ("4246049809", field.FieldSignature());
72 AutofillField field;
73 ASSERT_EQ(UNKNOWN_TYPE, field.type());
76 EXPECT_FALSE(field.IsFieldFillable());
79 field.set_heuristic_type(NAME_FIRST);
80 EXPECT_TRUE(field.IsFieldFillable());
83 field.set_heuristic_type(UNKNOWN_TYPE);
84 field.set_server_type(NAME_LAST);
85 EXPECT_TRUE(field.IsFieldFillable());
88 field.set_heuristic_type(NAME_FIRST);
89 field.set_server_type(NAME_LAST);
90 EXPECT_TRUE(field.IsFieldFillable());