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

Unified Diff: components/autofill/core/browser/address_i18n_unittest.cc

Issue 490373002: Add back organization field for autofill settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Git migration. Created 6 years, 4 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: components/autofill/core/browser/address_i18n_unittest.cc
diff --git a/components/autofill/core/browser/address_i18n_unittest.cc b/components/autofill/core/browser/address_i18n_unittest.cc
index 72ec64a80bc380f4d085cb8c03cd06b172bb6b42..d360b1d621f1d6d215bb8656ee60dbda69028cd2 100644
--- a/components/autofill/core/browser/address_i18n_unittest.cc
+++ b/components/autofill/core/browser/address_i18n_unittest.cc
@@ -26,6 +26,7 @@ using ::i18n::addressinput::ADMIN_AREA;
using ::i18n::addressinput::COUNTRY;
using ::i18n::addressinput::DEPENDENT_LOCALITY;
using ::i18n::addressinput::LOCALITY;
+using ::i18n::addressinput::ORGANIZATION;
using ::i18n::addressinput::POSTAL_CODE;
using ::i18n::addressinput::RECIPIENT;
using ::i18n::addressinput::SORTING_CODE;
@@ -44,6 +45,7 @@ TEST(AddressI18nTest, FieldTypeMirrorConversions) {
{true, ADDRESS_BILLING_SORTING_CODE, SORTING_CODE},
{true, ADDRESS_BILLING_ZIP, POSTAL_CODE},
{true, ADDRESS_BILLING_STREET_ADDRESS, STREET_ADDRESS},
+ {true, COMPANY_NAME, ORGANIZATION},
{true, NAME_BILLING_FULL, RECIPIENT},
{false, ADDRESS_HOME_COUNTRY, COUNTRY},
{false, ADDRESS_HOME_STATE, ADMIN_AREA},
@@ -52,6 +54,7 @@ TEST(AddressI18nTest, FieldTypeMirrorConversions) {
{false, ADDRESS_HOME_SORTING_CODE, SORTING_CODE},
{false, ADDRESS_HOME_ZIP, POSTAL_CODE},
{false, ADDRESS_HOME_STREET_ADDRESS, STREET_ADDRESS},
+ {false, COMPANY_NAME, ORGANIZATION},
{false, NAME_FULL, RECIPIENT},
};
@@ -115,6 +118,7 @@ TEST(AddressI18nTest, CreateAddressDataFromAutofillProfile) {
expected.locality = "Elysium";
expected.postal_code = "91111";
expected.language_code = "en";
+ expected.organization = "Underworld";
expected.recipient = "John H. Doe";
EXPECT_EQ(expected, *actual);
« no previous file with comments | « components/autofill/core/browser/address_i18n.cc ('k') | components/autofill/core/browser/autofill_profile_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698