| Index: components/autofill/core/browser/personal_data_manager_unittest.cc
|
| diff --git a/components/autofill/core/browser/personal_data_manager_unittest.cc b/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| index 4cbf034a1480058540fe89aafdd443a28a7d6863..63d930636323b963c9483309115f210057646e80 100644
|
| --- a/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| +++ b/components/autofill/core/browser/personal_data_manager_unittest.cc
|
| @@ -2675,4 +2675,19 @@ TEST_F(PersonalDataManagerTest, GetCreditCardSuggestions) {
|
| EXPECT_EQ(base::string16(), labels[1]);
|
| }
|
|
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| +TEST_F(PersonalDataManagerTest, ShowAddressBookPrompt) {
|
| + EXPECT_CALL(personal_data_observer_, OnPersonalDataChanged()).Times(2);
|
| +
|
| + AutofillType type(ADDRESS_HOME_STREET_ADDRESS);
|
| +
|
| + prefs_->SetBoolean(prefs::kAutofillEnabled, true);
|
| + EXPECT_TRUE(personal_data_->ShouldShowAccessAddressBookSuggestion(type));
|
| +
|
| + prefs_->SetBoolean(prefs::kAutofillEnabled, false);
|
| + EXPECT_FALSE(personal_data_->ShouldShowAccessAddressBookSuggestion(type));
|
| +}
|
| +
|
| +#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
| +
|
| } // namespace autofill
|
|
|