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
This commit is contained in:
Tal Benesh authored and meta-codesync[bot] committed 2026-01-12 11:39:45 -08:00
1 parent b45c8202e5
commit 2a776b1f65
1 file changed
+1 -1
@@ -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)
/**