Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm

Issue 2800031: AutoFill "me" card integration defaults to enabled on Mac (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm
diff --git a/chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm b/chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm
index 356e12e16e763e833ae63442ea53159476fa659e..1fc4373cdc0b2e5d75ff4fb3fa97d3235f2d3372 100644
--- a/chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm
+++ b/chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm
@@ -500,7 +500,8 @@ TEST_F(AutoFillDialogControllerTest, TwoCreditCardsDeleteOne) {
ASSERT_EQ(observer_.credit_cards_[0], credit_card);
}
-TEST_F(AutoFillDialogControllerTest, AuxiliaryProfilesFalse) {
+// Auxilliary profiles are enabled by default.
+TEST_F(AutoFillDialogControllerTest, AuxiliaryProfilesTrue) {
LoadDialog();
[controller_ save:nil];
@@ -508,13 +509,13 @@ TEST_F(AutoFillDialogControllerTest, AuxiliaryProfilesFalse) {
ASSERT_TRUE(observer_.hit_);
// Auxiliary profiles setting should be unchanged.
- ASSERT_FALSE(helper_.profile()->GetPrefs()->GetBoolean(
+ ASSERT_TRUE(helper_.profile()->GetPrefs()->GetBoolean(
prefs::kAutoFillAuxiliaryProfilesEnabled));
}
-TEST_F(AutoFillDialogControllerTest, AuxiliaryProfilesTrue) {
+TEST_F(AutoFillDialogControllerTest, AuxiliaryProfilesFalse) {
helper_.profile()->GetPrefs()->SetBoolean(
- prefs::kAutoFillAuxiliaryProfilesEnabled, true);
+ prefs::kAutoFillAuxiliaryProfilesEnabled, false);
LoadDialog();
[controller_ save:nil];
@@ -522,7 +523,7 @@ TEST_F(AutoFillDialogControllerTest, AuxiliaryProfilesTrue) {
ASSERT_TRUE(observer_.hit_);
// Auxiliary profiles setting should be unchanged.
- ASSERT_TRUE(helper_.profile()->GetPrefs()->GetBoolean(
+ ASSERT_FALSE(helper_.profile()->GetPrefs()->GetBoolean(
prefs::kAutoFillAuxiliaryProfilesEnabled));
}
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698