diff options
author | Abseil Team <absl-team@google.com> | 2019-02-28 15:13:24 -0500 |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-03-01 16:18:24 -0500 |
commit | db9b85e27522628ef173149a692031b7f2154b55 (patch) | |
tree | eff63b56f186f28613ef4a476fbf12b89474269f /googlemock/test/gmock-internal-utils_test.cc | |
parent | 56ef07a20308b57f940936c6979f5d6d3837d8c6 (diff) | |
download | googletest-db9b85e27522628ef173149a692031b7f2154b55.tar.gz googletest-db9b85e27522628ef173149a692031b7f2154b55.tar.bz2 googletest-db9b85e27522628ef173149a692031b7f2154b55.zip |
Googletest export
Let embedders customize GTEST_INTERNAL_DEPRECATED().
GTEST_INTERNAL_DEPRECATED is currently used to nudge googletest users to migrate off old TEST_CASE macros to the new TEST_SUITE macros. This move is non-trivial for Chromium (see https://crbug.com/925652), and might be difficult for other big projects with many dependencies.
This CL facilitates moving off of deprecated APIs by making it possible for an embedder to define GTEST_INTERNAL_DEPRECATED() in gtest/internal/custom/gtest-port.h. Example usage:
1) #define GTEST_INTERNAL_DEPRECATED() to nothing, to disable deprecation warnings while migrating off googletest's deprecated APIs. This can be preferable to having to disable all deprecation warnings (-Wno-error=deprecated or -Wno-deprecated-declarations).
2) #define GTEST_INTERNAL_DEPRECATED() for an unsupported compiler.
PiperOrigin-RevId: 236171043
Diffstat (limited to 'googlemock/test/gmock-internal-utils_test.cc')
0 files changed, 0 insertions, 0 deletions