Fix misc-override-with-different-visibility warning

TEST_P overrides TestBody() with public visibility instead
of private as defined in the Test base class

PiperOrigin-RevId: 981828756
Change-Id: I9ad0852642520b6b8585df15c3e63885f6fbd135
This commit is contained in:
Abseil Team
2026-09-15 08:06:08 -07:00
committed by Copybara-Service
parent 8eff9e3366
commit f840327b0f
+1 -1
View File
@@ -510,9 +510,9 @@ auto ConvertGenerator(Gen&& gen, Func&& f) {
private ::testing::internal::GTestNonCopyable { \ private ::testing::internal::GTestNonCopyable { \
public: \ public: \
GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() {} \ GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() {} \
void TestBody() override; \
\ \
private: \ private: \
void TestBody() override; \
static int AddToRegistry() { \ static int AddToRegistry() { \
::testing::UnitTest::GetInstance() \ ::testing::UnitTest::GetInstance() \
->parameterized_test_registry() \ ->parameterized_test_registry() \