From 2a776b1f657235246843ec3f4ff24fc0a583e6c1 Mon Sep 17 00:00:00 2001 From: Tal Benesh Date: Mon, 12 Jan 2026 11:39:45 -0800 Subject: [PATCH] Fix test build breaks after CP https://github.com/google/googletest/commit/7d7e750850c65099e49cc1a1aac94a79a914bba7 (#55133) Summary: ## Changelog: [General] [Fixed] - Fix test build breaks after GoogleTest update Pull Request resolved: https://github.com/facebook/react-native/pull/55133 https://github.com/google/googletest/commit/7d7e750850c65099e49cc1a1aac94a79a914bba7 included a breaking change of changing GetWithoutMatchers() to WithoutMatchers::Get() (googletest/googlemock/include/gmock/internal/gmock-internal-utils.h) This caused build breaks for a few tests that weren't signaled in the original CP. This fixes it Reviewed By: joachimr2 Differential Revision: D90514337 fbshipit-source-id: ee6372804ad96a18ea0552c333dd62cde4c7f142 --- .../ReactCommon/jsinspector-modern/tests/GmockHelpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/jsinspector-modern/tests/GmockHelpers.h b/packages/react-native/ReactCommon/jsinspector-modern/tests/GmockHelpers.h index a6ceb7ad8a6..070989ab9f6 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/tests/GmockHelpers.h +++ b/packages/react-native/ReactCommon/jsinspector-modern/tests/GmockHelpers.h @@ -14,7 +14,7 @@ * a std::source_location parameter. */ #define GMOCK_ON_CALL_WITH_SOURCE_LOCATION_IMPL_(location, mock_expr, Setter, call) \ - ((mock_expr).gmock_##call)(::testing::internal::GetWithoutMatchers(), nullptr) \ + ((mock_expr).gmock_##call)(::testing::internal::WithoutMatchers::Get(), nullptr) \ .Setter((location).file_name(), (location).line(), #mock_expr, #call) /**