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

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

Issue 2673006: AutoFill Profiles dialog implemented according to new mocks on Mac (Closed)
Patch Set: Revisions based on review comments. 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
Index: chrome/browser/autofill/autofill_address_model_mac_unittest.mm
diff --git a/chrome/browser/autofill/autofill_address_model_mac_unittest.mm b/chrome/browser/autofill/autofill_address_model_mac_unittest.mm
index 9265e0443214ec818d49bd4cdc09e24149bde319..fcdd1cc8277c757263179285e70eaa94c2de14aa 100644
--- a/chrome/browser/autofill/autofill_address_model_mac_unittest.mm
+++ b/chrome/browser/autofill/autofill_address_model_mac_unittest.mm
@@ -45,9 +45,7 @@ TEST(AutoFillAddressModelTest, InitializationFromProfile) {
EXPECT_TRUE(model.get());
EXPECT_TRUE([[model label] isEqualToString:@"Billing"]);
- EXPECT_TRUE([[model firstName] isEqualToString:@"Marion"]);
- EXPECT_TRUE([[model middleName] isEqualToString:@"Mitchell"]);
- EXPECT_TRUE([[model lastName] isEqualToString:@"Morrison"]);
+ EXPECT_TRUE([[model fullName] isEqualToString:@"Marion Mitchell Morrison"]);
EXPECT_TRUE([[model email] isEqualToString:@"johnwayne@me.xyz"]);
EXPECT_TRUE([[model companyName] isEqualToString:@"Fox"]);
EXPECT_TRUE([[model addressLine1] isEqualToString:@"123 Zoo St."]);
@@ -82,9 +80,7 @@ TEST(AutoFillAddressModelTest, CopyModelToProfile) {
EXPECT_TRUE(model.get());
[model setLabel:@"BillingX"];
- [model setFirstName:@"MarionX"];
- [model setMiddleName:@"MitchellX"];
- [model setLastName:@"MorrisonX"];
+ [model setFullName:@"MarionX MitchellX MorrisonX"];
[model setEmail:@"trigger@me.xyz"];
[model setCompanyName:@"FoxX"];
[model setAddressLine1:@"123 Xoo St."];
@@ -105,6 +101,8 @@ TEST(AutoFillAddressModelTest, CopyModelToProfile) {
profile.GetFieldText(AutoFillType(NAME_MIDDLE)));
EXPECT_EQ(ASCIIToUTF16("MorrisonX"),
profile.GetFieldText(AutoFillType(NAME_LAST)));
+ EXPECT_EQ(ASCIIToUTF16("MarionX MitchellX MorrisonX"),
+ profile.GetFieldText(AutoFillType(NAME_FULL)));
EXPECT_EQ(ASCIIToUTF16("trigger@me.xyz"),
profile.GetFieldText(AutoFillType(EMAIL_ADDRESS)));
EXPECT_EQ(ASCIIToUTF16("FoxX"),
« no previous file with comments | « chrome/browser/autofill/autofill_address_model_mac.mm ('k') | chrome/browser/autofill/autofill_address_sheet_controller_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698