From f840327b0f76408eafde2440af3b2f0a70662ea6 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 15 Sep 2026 08:05:04 -0700 Subject: [PATCH] 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 --- googletest/include/gtest/gtest-param-test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googletest/include/gtest/gtest-param-test.h b/googletest/include/gtest/gtest-param-test.h index 64c60da8a..f3ed5ee50 100644 --- a/googletest/include/gtest/gtest-param-test.h +++ b/googletest/include/gtest/gtest-param-test.h @@ -510,9 +510,9 @@ auto ConvertGenerator(Gen&& gen, Func&& f) { private ::testing::internal::GTestNonCopyable { \ public: \ GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() {} \ - void TestBody() override; \ \ private: \ + void TestBody() override; \ static int AddToRegistry() { \ ::testing::UnitTest::GetInstance() \ ->parameterized_test_registry() \