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

Unified Diff: chrome/browser/autofill/autofill_country_unittest.cc

Issue 6626070: Fix the settings page for es-419 locale: Spanish (Latin America). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed Created 9 years, 9 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 | « chrome/browser/autofill/autofill_country.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_country_unittest.cc
diff --git a/chrome/browser/autofill/autofill_country_unittest.cc b/chrome/browser/autofill/autofill_country_unittest.cc
index f0dd81480cf63a8c1f191653cb9187d019caf9c6..c052def48c9da10b29899edcc40362680859c68a 100644
--- a/chrome/browser/autofill/autofill_country_unittest.cc
+++ b/chrome/browser/autofill/autofill_country_unittest.cc
@@ -38,6 +38,9 @@ TEST(AutofillCountryTest, CountryCodeForLocale) {
EXPECT_EQ("CA", AutofillCountry::CountryCodeForLocale("fr_CA"));
EXPECT_EQ("FR", AutofillCountry::CountryCodeForLocale("fr"));
EXPECT_EQ("US", AutofillCountry::CountryCodeForLocale("Unknown"));
+ // "es-419" isn't associated with a country. See base/l10n/l10n_util.cc
+ // for details about this locale. Default to US.
+ EXPECT_EQ("US", AutofillCountry::CountryCodeForLocale("es-419"));
}
// Test mapping of localized country names to country codes.
« no previous file with comments | « chrome/browser/autofill/autofill_country.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698