Index: chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc b/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc |
index e6b4f9455e86beb1680a8cce0709655a936efb4f..b93b252a0f21b9e85f11b817e332c5b241a42ff2 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc |
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "chrome/common/chrome_switches.h" |
#include "components/autofill/core/browser/field_types.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_ui.h" |
namespace autofill { |
namespace i18ninput { |
@@ -74,5 +75,14 @@ TEST(AutofillDialogI18nInput, IvoryCoastNoStreetLine2) { |
} |
} |
+TEST(AutofillDialogI18nInput, FullySupportedCountries) { |
+ const std::vector<std::string>& regions = |
+ ::i18n::addressinput::GetRegionCodes(); |
+ for (size_t i = 0; i < regions.size(); ++i) { |
+ bool should_be_supported = !(regions[i] == "KR" || regions[i] == "CN"); |
+ EXPECT_EQ(should_be_supported, CountryIsFullySupported(regions[i])); |
+ } |
+} |
+ |
} // namespace i18ninput |
} // namespace autofill |