| Index: components/autofill/core/browser/autofill_field_unittest.cc
|
| diff --git a/components/autofill/core/browser/autofill_field_unittest.cc b/components/autofill/core/browser/autofill_field_unittest.cc
|
| index 2f60e223679ac2c25735eab5df596de99811a591..8557e3170a209c3297a68fd7b2eb2c4a16816d2c 100644
|
| --- a/components/autofill/core/browser/autofill_field_unittest.cc
|
| +++ b/components/autofill/core/browser/autofill_field_unittest.cc
|
| @@ -18,19 +18,22 @@ TEST(AutofillFieldTest, Type) {
|
| ASSERT_EQ(UNKNOWN_TYPE, field.heuristic_type());
|
|
|
| // |server_type_| is NO_SERVER_DATA, so |heuristic_type_| is returned.
|
| - EXPECT_EQ(UNKNOWN_TYPE, field.Type().native_type());
|
| + EXPECT_EQ(UNKNOWN_TYPE, field.Type().GetEquivalentNativeType());
|
|
|
| // Set the heuristic type and check it.
|
| field.set_heuristic_type(NAME_FIRST);
|
| - EXPECT_EQ(NAME_FIRST, field.Type().native_type());
|
| + EXPECT_EQ(NAME_FIRST, field.Type().GetEquivalentNativeType());
|
| + EXPECT_EQ(NAME, field.Type().group());
|
|
|
| // Set the server type and check it.
|
| field.set_server_type(ADDRESS_BILLING_LINE1);
|
| - EXPECT_EQ(ADDRESS_BILLING_LINE1, field.Type().native_type());
|
| + EXPECT_EQ(ADDRESS_HOME_LINE1, field.Type().GetEquivalentNativeType());
|
| + EXPECT_EQ(ADDRESS_BILLING, field.Type().group());
|
|
|
| // Remove the server type to make sure the heuristic type is preserved.
|
| field.set_server_type(NO_SERVER_DATA);
|
| - EXPECT_EQ(NAME_FIRST, field.Type().native_type());
|
| + EXPECT_EQ(NAME_FIRST, field.Type().GetEquivalentNativeType());
|
| + EXPECT_EQ(NAME, field.Type().group());
|
| }
|
|
|
| TEST(AutofillFieldTest, IsEmpty) {
|
| @@ -72,7 +75,7 @@ TEST(AutofillFieldTest, FieldSignature) {
|
|
|
| TEST(AutofillFieldTest, IsFieldFillable) {
|
| AutofillField field;
|
| - ASSERT_EQ(UNKNOWN_TYPE, field.Type().native_type());
|
| + ASSERT_EQ(UNKNOWN_TYPE, field.Type().GetEquivalentNativeType());
|
|
|
| // Type is unknown.
|
| EXPECT_FALSE(field.IsFieldFillable());
|
|
|