Browse Source

Fix test compilation errors in Chromium (#2383)

* Lock C++11 implementation based on std::mutex.

* Fix test compilation
pull/2384/head
dvadym 6 years ago
committed by AlipmanG
parent
commit
68eba9d6ee
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      cpp/test/phonenumbers/phonenumberutil_test.cc

+ 3
- 3
cpp/test/phonenumbers/phonenumberutil_test.cc View File

@ -188,14 +188,14 @@ TEST_F(PhoneNumberUtilTest, GetSupportedTypesForRegion) {
types.clear();
phone_util_.GetSupportedTypesForRegion(RegionCode::ZZ(), &types);
// Test the invalid region code.
EXPECT_EQ(0, types.size());
EXPECT_EQ(0u, types.size());
}
TEST_F(PhoneNumberUtilTest, GetSupportedTypesForNonGeoEntity) {
std::set<PhoneNumberUtil::PhoneNumberType> types;
// No data exists for 999 at all, no types should be returned.
phone_util_.GetSupportedTypesForNonGeoEntity(999, &types);
EXPECT_EQ(0, types.size());
EXPECT_EQ(0u, types.size());
types.clear();
phone_util_.GetSupportedTypesForNonGeoEntity(979, &types);
@ -436,7 +436,7 @@ TEST_F(PhoneNumberUtilTest, GetInvalidExampleNumber) {
&test_number));
// At least the country calling code should be set correctly.
EXPECT_EQ(1, test_number.country_code());
EXPECT_NE(0, test_number.national_number());
EXPECT_NE(0u, test_number.national_number());
}
TEST_F(PhoneNumberUtilTest, GetExampleNumberForNonGeoEntity) {


Loading…
Cancel
Save