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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc

Issue 1153663004: [Autofill] Remove (most) support for variants in chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
index 4dbffced38158091acbc945c3fcc08fdda98b84f..b19fdee3b505930420e59fa9ae3fb7d952c3c21f 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc
@@ -1124,30 +1124,6 @@ TEST_F(AutofillDialogControllerTest, NewAutofillProfileIsDefault) {
EXPECT_EQ(2, GetMenuModelForSection(SECTION_SHIPPING)->checked_item());
}
-TEST_F(AutofillDialogControllerTest, AutofillProfileVariants) {
- SwitchToAutofill();
- EXPECT_CALL(*controller()->GetView(), ModelChanged());
- ui::MenuModel* shipping_model =
- controller()->MenuModelForSection(SECTION_SHIPPING);
- ASSERT_TRUE(shipping_model);
- EXPECT_EQ(3, shipping_model->GetItemCount());
-
- // Set up some variant data.
- AutofillProfile full_profile(test::GetVerifiedProfile());
- std::vector<base::string16> names;
- names.push_back(ASCIIToUTF16("John Doe"));
- names.push_back(ASCIIToUTF16("Jane Doe"));
- full_profile.SetRawMultiInfo(NAME_FULL, names);
- std::vector<base::string16> emails;
- emails.push_back(ASCIIToUTF16(kFakeEmail));
- emails.push_back(ASCIIToUTF16("admin@example.com"));
- full_profile.SetRawMultiInfo(EMAIL_ADDRESS, emails);
-
- // Non-default variants are ignored by the dialog.
- controller()->GetTestingManager()->AddTestingProfile(&full_profile);
- EXPECT_EQ(4, shipping_model->GetItemCount());
-}
-
TEST_F(AutofillDialogControllerTest, SuggestValidEmail) {
SwitchToAutofill();
AutofillProfile profile(test::GetVerifiedProfile());
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | chrome/browser/ui/autofill/data_model_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698