Use std::make_unique to avoid clang-tidy false positive in GTEST_TEST_ macro.

PiperOrigin-RevId: 965352463
Change-Id: I4062f4f7a48cba6bf514abd7860d422f6e98cee7
This commit is contained in:
Abseil Team
2026-08-15 18:34:42 -07:00
committed by Copybara-Service
parent 49495eacfd
commit a2118f6587
@@ -1516,8 +1516,9 @@ class [[nodiscard]] NeverThrown {
parent_class>::GetSetUpCaseOrSuite(__FILE__, __LINE__), \
::testing::internal::SuiteApiResolver< \
parent_class>::GetTearDownCaseOrSuite(__FILE__, __LINE__), \
new ::testing::internal::TestFactoryImpl<GTEST_TEST_CLASS_NAME_( \
test_suite_name, test_name)>); \
::std::make_unique<::testing::internal::TestFactoryImpl< \
GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)>>() \
.release()); \
void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
#endif // GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_