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

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

Issue 6484022: Autofill i18n: Set postal code and state field labels based on the selected country. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Properly merged with ToT Created 9 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
« no previous file with comments | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/select_control_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_profile_unittest.cc
diff --git a/chrome/browser/autofill/autofill_profile_unittest.cc b/chrome/browser/autofill/autofill_profile_unittest.cc
index d207bc488c0cfba839cf5ad71a3bf5bdeb488e2e..ab4a8535c312a46658ba4ebf08aec07608b25e0a 100644
--- a/chrome/browser/autofill/autofill_profile_unittest.cc
+++ b/chrome/browser/autofill/autofill_profile_unittest.cc
@@ -22,6 +22,8 @@ bool UpdateProfileLabel(AutoFillProfile *profile) {
return AutoFillProfile::AdjustInferredLabels(&profiles);
}
+} // namespace
+
// Tests different possibilities for summary string generation.
// Based on existence of first name, last name, and address line 1.
TEST(AutoFillProfileTest, PreviewSummaryString) {
@@ -633,4 +635,10 @@ TEST(AutoFillProfileTest, Compare) {
EXPECT_LT(0, b.Compare(a));
}
-} // namespace
+TEST(AutoFillProfileTest, CountryCode) {
+ AutoFillProfile profile;
+ EXPECT_EQ(std::string(), profile.CountryCode());
+
+ profile.SetCountryCode("US");
+ EXPECT_EQ("US", profile.CountryCode());
+}
« no previous file with comments | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/select_control_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698