summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 22:10:46 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 22:10:46 +0000
commit23703a43ab30de648b0dcaf3e82255bc4e993b1e (patch)
treecbd95ccb5266fa09e5dc4afc95d81b7ad86f8074 /third_party
parent13baaa0caa7f8a455d553c1567dfeaf321a7a7d1 (diff)
downloadchromium_src-23703a43ab30de648b0dcaf3e82255bc4e993b1e.zip
chromium_src-23703a43ab30de648b0dcaf3e82255bc4e993b1e.tar.gz
chromium_src-23703a43ab30de648b0dcaf3e82255bc4e993b1e.tar.bz2
rAc: more libaddressinput unit test compile warning fixes.
R=rouslan@chromium.org BUG=340769 Review URL: https://codereview.chromium.org/211473003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc b/third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc
index ac664ff..cf68ec0 100644
--- a/third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc
+++ b/third_party/libaddressinput/chromium/cpp/test/address_validator_test.cc
@@ -242,7 +242,7 @@ TEST_F(AddressValidatorTest, SuggestAdminAreaForPostalCode) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("CA", suggestions[0].administrative_area);
EXPECT_EQ("90291", suggestions[0].postal_code);
}
@@ -257,7 +257,7 @@ TEST_F(AddressValidatorTest, SuggestLocalityForPostalCodeWithAdminArea) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("Dacun Township", suggestions[0].locality);
EXPECT_EQ("Changhua County", suggestions[0].administrative_area);
EXPECT_EQ("515", suggestions[0].postal_code);
@@ -273,7 +273,7 @@ TEST_F(AddressValidatorTest, SuggestAdminAreaForPostalCodeWithLocality) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("Dacun Township", suggestions[0].locality);
EXPECT_EQ("Changhua County", suggestions[0].administrative_area);
EXPECT_EQ("515", suggestions[0].postal_code);
@@ -300,7 +300,7 @@ TEST_F(AddressValidatorTest, SuggestForLocality) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, LOCALITY, 10, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("Anqing Shi", suggestions[0].locality);
EXPECT_EQ("ANHUI SHENG", suggestions[0].administrative_area);
}
@@ -315,7 +315,7 @@ TEST_F(AddressValidatorTest, SuggestForLocalityAndAdminArea) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, LOCALITY, 10, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_TRUE(suggestions[0].dependent_locality.empty());
EXPECT_EQ("Anqing Shi", suggestions[0].locality);
EXPECT_EQ("ANHUI SHENG", suggestions[0].administrative_area);
@@ -331,7 +331,7 @@ TEST_F(AddressValidatorTest, SuggestForAdminAreaAndLocality) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, ADMIN_AREA, 10, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_TRUE(suggestions[0].dependent_locality.empty());
EXPECT_TRUE(suggestions[0].locality.empty());
EXPECT_EQ("ANHUI SHENG", suggestions[0].administrative_area);
@@ -347,7 +347,7 @@ TEST_F(AddressValidatorTest, SuggestForDependentLocality) {
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(
address, DEPENDENT_LOCALITY, 10, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("Zongyang Xian", suggestions[0].dependent_locality);
EXPECT_EQ("Anqing Shi", suggestions[0].locality);
EXPECT_EQ("ANHUI SHENG", suggestions[0].administrative_area);
@@ -387,7 +387,7 @@ TEST_F(AddressValidatorTest, PreferShortSuggestions) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, ADMIN_AREA, 10, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("CA", suggestions[0].administrative_area);
}
@@ -399,7 +399,7 @@ TEST_F(AddressValidatorTest, SuggestTheSingleMatchForFullMatchName) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, ADMIN_AREA, 10, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("Texas", suggestions[0].administrative_area);
}
@@ -411,7 +411,7 @@ TEST_F(AddressValidatorTest, SuggestAdminArea) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, ADMIN_AREA, 10, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("California", suggestions[0].administrative_area);
}
@@ -449,7 +449,7 @@ TEST_F(AddressValidatorTest, SuggestNonLatinKeyWhenLanguageMatches) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("강원도", suggestions[0].administrative_area);
EXPECT_EQ("210-210", suggestions[0].postal_code);
}
@@ -464,7 +464,7 @@ TEST_F(AddressValidatorTest, SuggestNonLatinKeyWhenUserInputIsNotLatin) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, ADMIN_AREA, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("강원도", suggestions[0].administrative_area);
}
@@ -479,7 +479,7 @@ TEST_F(AddressValidatorTest,
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("Gangwon", suggestions[0].administrative_area);
EXPECT_EQ("210-210", suggestions[0].postal_code);
}
@@ -494,7 +494,7 @@ TEST_F(AddressValidatorTest, SuggestLatinNameWhenUserInputIsLatin) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, ADMIN_AREA, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("Gangwon", suggestions[0].administrative_area);
}
@@ -517,7 +517,7 @@ TEST_F(AddressValidatorTest, SuggestionIncludesCountry) {
std::vector<AddressData> suggestions;
EXPECT_EQ(AddressValidator::SUCCESS,
validator_->GetSuggestions(address, POSTAL_CODE, 1, &suggestions));
- ASSERT_EQ(1, suggestions.size());
+ ASSERT_EQ(1U, suggestions.size());
EXPECT_EQ("US", suggestions[0].country_code);
}