mirror of
https://github.com/google/googletest.git
synced 2026-09-25 04:09:59 +03:00
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:
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_
|
||||
|
||||
Reference in New Issue
Block a user