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

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

Issue 172783003: rAc: don't show countries with partially supported address fields for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 6 years, 10 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_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
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc ('k') | chrome/browser/ui/autofill/country_combobox_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698