Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
fix: update gtest and fix build error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kitty-panics committed Oct 30, 2022
1 parent a56f578 commit 7db668a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
Binary file added cpp/ext/redist/gtest-1.12.1.7z
Binary file not shown.
Binary file removed cpp/ext/redist/gtest-1.6.0.zip
Binary file not shown.
4 changes: 0 additions & 4 deletions cpp/src/test/cmap_iterator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,4 @@ INSTANTIATE_TEST_CASE_P(CMapIteratorTests,
::testing::ValuesIn(kCMapIteratorTestsTestCases));
}

#else

TEST(DummyTest, ValueParameterizedTestsAreNotSupportedOnThisPlatform) {}

#endif // GTEST_HAS_PARAM
4 changes: 0 additions & 4 deletions cpp/src/test/cmap_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,4 @@ INSTANTIATE_TEST_CASE_P(CMapTests,
::testing::ValuesIn(kCMapTestsTestCases));
}

#else

TEST(DummyTest, ValueParameterizedTestsAreNotSupportedOnThisPlatform) {}

#endif // GTEST_HAS_PARAM
2 changes: 1 addition & 1 deletion cpp/src/test/test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int32_t TestUtils::EncodeOneChar(UConverter* encoder, int16_t uchar) {
target_end = target;
ucnv_fromUnicode(encoder, &target_end, target + 4,
(const UChar**)&source_end, source + sizeof(UChar),
NULL, TRUE, &status);
NULL, true, &status);
if (!U_SUCCESS(status)) {
fprintf(stderr, "Error occured in conversion of %d: %s\n",
uchar, u_errorName(status));
Expand Down

0 comments on commit 7db668a

Please sign in to comment.