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 fac9b91ca1f860b1037a07476f72c6e722d6bced..e7832abc2b78f2b5dc54fa7d8c5c6d9facef1634 100644 |
--- a/components/autofill/core/browser/autofill_profile_unittest.cc |
+++ b/components/autofill/core/browser/autofill_profile_unittest.cc |
@@ -446,6 +446,12 @@ TEST(AutofillProfileTest, CreateInferredLabels) { |
NAME_FULL, 1, "en-US", &labels); |
EXPECT_EQ(base::string16(ASCIIToUTF16("666 Erebus St.")), labels[0]); |
EXPECT_EQ(base::string16(ASCIIToUTF16("123 Letha Shore.")), labels[1]); |
+ |
+ // No suggested fields, but non-unknown excluded field. |
+ AutofillProfile::CreateInferredLabels(profiles.get(), NULL, |
+ NAME_FULL, 1, "en-US", &labels); |
+ EXPECT_EQ(base::string16(ASCIIToUTF16("666 Erebus St.")), labels[0]); |
+ EXPECT_EQ(base::string16(ASCIIToUTF16("123 Letha Shore.")), labels[1]); |
} |
// Test that we fall back to using the full name if there are no other |