| Index: components/autofill/core/browser/autofill_profile_unittest.cc
|
| diff --git a/components/autofill/core/browser/autofill_profile_unittest.cc b/components/autofill/core/browser/autofill_profile_unittest.cc
|
| index 7a6630f8b2b184744aeec2a46ce17fd226664cb7..587968fec47559fe2d0b50620b3771a1c9c4baef 100644
|
| --- a/components/autofill/core/browser/autofill_profile_unittest.cc
|
| +++ b/components/autofill/core/browser/autofill_profile_unittest.cc
|
| @@ -1263,4 +1263,20 @@ TEST(AutofillProfileTest, SaveAdditionalInfo_Name_ComplementaryInformation) {
|
| a.GetRawInfo(NAME_FULL));
|
| }
|
|
|
| +// Tests that PrimaryValues of two similar profiles with different
|
| +// punctuation and case are equal.
|
| +TEST(AutofillProfileTest, PrimaryValue_SimilarProfiles) {
|
| + AutofillProfile profile1(base::GenerateGUID(), "https://www.example.com/");
|
| + test::SetProfileInfo(&profile1, "Marion", "Mitchell", "Morrison",
|
| + "marion@me.xyz", "Fox", "123 Zoo St.", "unit 5",
|
| + "Hollywood", "CA", "91601", "US", "12345678910");
|
| +
|
| + AutofillProfile profile2(base::GenerateGUID(), "https://www.example.com/");
|
| + test::SetProfileInfo(&profile2, "marion", "mitchell", "morrison",
|
| + "marion@me.xyz", "Fox", "123, Zoo St", "unit 5",
|
| + "hollywood", "CA", "91601", "US", "12345678910");
|
| +
|
| + EXPECT_EQ(profile1.PrimaryValue("en-US"), profile2.PrimaryValue("en-US"));
|
| +}
|
| +
|
| } // namespace autofill
|
|
|