summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/address_unittest.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 16:16:03 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 16:16:03 +0000
commit7b37fbb72d90091c6d39be97037e9b089ca0f635 (patch)
tree6f86b054efd68ecf80f643eca470e59984e138ab /chrome/browser/autofill/address_unittest.cc
parent7e7e96ddb9daf85e680a6240e96fdc288c314b20 (diff)
downloadchromium_src-7b37fbb72d90091c6d39be97037e9b089ca0f635.zip
chromium_src-7b37fbb72d90091c6d39be97037e9b089ca0f635.tar.gz
chromium_src-7b37fbb72d90091c6d39be97037e9b089ca0f635.tar.bz2
autofill: Rename AutoFillType to AutofillType.
BUG=72758 TEST=existing unit_tests Review URL: http://codereview.chromium.org/6626042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/address_unittest.cc')
-rw-r--r--chrome/browser/autofill/address_unittest.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/chrome/browser/autofill/address_unittest.cc b/chrome/browser/autofill/address_unittest.cc
index fd85121..11ae945 100644
--- a/chrome/browser/autofill/address_unittest.cc
+++ b/chrome/browser/autofill/address_unittest.cc
@@ -28,15 +28,15 @@ TEST(AddressTest, GetCountry) {
EXPECT_EQ(std::string(), address.country_code());
// Make sure that nothing breaks when the country code is missing.
- string16 country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ string16 country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ(string16(), country);
address.set_country_code("US");
- country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ(ASCIIToUTF16("United States"), country);
address.set_country_code("CA");
- country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ(ASCIIToUTF16("Canada"), country);
}
@@ -46,33 +46,33 @@ TEST(AddressTest, SetCountry) {
EXPECT_EQ(std::string(), address.country_code());
// Test basic conversion.
- address.SetInfo(AutoFillType(ADDRESS_HOME_COUNTRY),
+ address.SetInfo(AutofillType(ADDRESS_HOME_COUNTRY),
ASCIIToUTF16("United States"));
- string16 country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ string16 country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ("US", address.country_code());
EXPECT_EQ(ASCIIToUTF16("United States"), country);
// Test basic synonym detection.
- address.SetInfo(AutoFillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("USA"));
- country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ address.SetInfo(AutofillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("USA"));
+ country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ("US", address.country_code());
EXPECT_EQ(ASCIIToUTF16("United States"), country);
// Test case-insensitivity.
- address.SetInfo(AutoFillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("canADA"));
- country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ address.SetInfo(AutofillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("canADA"));
+ country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ("CA", address.country_code());
EXPECT_EQ(ASCIIToUTF16("Canada"), country);
// Test country code detection.
- address.SetInfo(AutoFillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("JP"));
- country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ address.SetInfo(AutofillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("JP"));
+ country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ("JP", address.country_code());
EXPECT_EQ(ASCIIToUTF16("Japan"), country);
// Test that we ignore unknown countries.
- address.SetInfo(AutoFillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("Unknown"));
- country = address.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY));
+ address.SetInfo(AutofillType(ADDRESS_HOME_COUNTRY), ASCIIToUTF16("Unknown"));
+ country = address.GetFieldText(AutofillType(ADDRESS_HOME_COUNTRY));
EXPECT_EQ(std::string(), address.country_code());
EXPECT_EQ(string16(), country);
}