From 68eba9d6ee8b11fb58ece36b6c46d07965d7f7ff Mon Sep 17 00:00:00 2001 From: dvadym <53558779+dvadym@users.noreply.github.com> Date: Wed, 21 Aug 2019 20:23:35 +0200 Subject: [PATCH] Fix test compilation errors in Chromium (#2383) * Lock C++11 implementation based on std::mutex. * Fix test compilation --- cpp/test/phonenumbers/phonenumberutil_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/test/phonenumbers/phonenumberutil_test.cc b/cpp/test/phonenumbers/phonenumberutil_test.cc index da6838150..1236df4be 100644 --- a/cpp/test/phonenumbers/phonenumberutil_test.cc +++ b/cpp/test/phonenumbers/phonenumberutil_test.cc @@ -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 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) {