Bump version to 1.13.0 in preparation for release
PiperOrigin-RevId:
502626077
Change-Id: I3aad27a8b725cf73163e52ef2e28e6cdfc13082b
gmock_output_test: normalize golden file output to unix line endings
When checked out on Windows, the repo might use \r\n line endings,
and so the golden output has them. Adjust for that.
PiperOrigin-RevId:
502577222
Change-Id: Iabfe537f6d95a49bf6bdcb934e855d28c65f6f89
Fix -Wshadow warnings
../googlemock/test/gmock-actions_test.cc:687:36: warning: declaration of ‘v’ shadows a member of ‘testing::{anonymous}::ReturnTest_SupportsReferenceLikeReturnType_Test::TestBody()::Result’ [-Wshadow]
687 | Result(const std::vector<int>& v) : v(&v) {} // NOLINT
| ~~~~~~~~~~~~~~~~~~~~~~~~^
../googlemock/test/gmock-actions_test.cc:686:29: note: shadowed declaration is here
686 | const std::vector<int>* v;
| ^
../googlemock/test/gmock-actions_test.cc: In constructor ‘testing::{anonymous}::ReturnTest_PrefersConversionOperator_Test::TestBody()::Out::Out(int)’:
../googlemock/test/gmock-actions_test.cc:720:28: warning: declaration of ‘x’ shadows a member of ‘testing::{anonymous}::ReturnTest_PrefersConversionOperator_Test::TestBody()::Out’ [-Wshadow]
720 | explicit Out(const int x) : x(x) {}
| ~~~~~~~~~~^
../googlemock/test/gmock-actions_test.cc:718:9: note: shadowed declaration is here
718 | int x;
| ^
PiperOrigin-RevId:
501580618
Change-Id: I584710fbbe440ec724f88746e51f3be5653c32d5
Add an explicit #error that C++ versions less than C++14 are not supported
PiperOrigin-RevId:
501568410
Change-Id: I0f78cd96dc9204c8ec97a1cdd09a9d63a613cc5b
Update GoogleTest dependencies
PiperOrigin-RevId:
501282034
Change-Id: I0314ac566dc5e117db5a06c97d303e5cf8822d61
Fix GTEST_OS_ESP8266 check
Everywhere else in the code, we check the value of GTEST_OS_ESP8266, not just
whether it is defined.
PiperOrigin-RevId:
499946909
Change-Id: I86f7e8947abb4e928fc24d1416d8237987b27845
IWYU: Add missing std includes
PiperOrigin-RevId:
499893032
Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba
Workaround for GCC12 bug illustrated by https://godbolt.org/z/Pe5aE59xG
Fixes #4108
PiperOrigin-RevId:
499556061
Change-Id: I1cb1564f9b77e1825fddc9236965f4a3b661d96a
Fix _MSC_VER check
Use "#if defined(_MSC_VER)" instead of "#if _MSC_VER" to be consistent with other usages in the file and to work with the "-Wundef" warning.
PiperOrigin-RevId:
499471290
Change-Id: I34a9442eecf266afd74d4332cab7d39766df4ed9
Use a more recent commit of googletest that uses OS constraints from
@platforms//os:* instead of from @build_tools//platforms:*
See https://github.com/bazelbuild/bazel/issues/8622
Necessary to fix #4096
Also need the fix for #4098
PiperOrigin-RevId:
497182073
Change-Id: Ifd568b088d2f779755dd20264edfd5dad12ca9cc