googletest/googlemock/include/gmock
Derek Mauro 25dcdc7e8b Use the Abseil flags library when Abseil is present
When built with `--define=absl=1` under Bazel, GoogleTest
flags use ABSL_FLAG instead of GoogleTest's own implementation.

There are some minor behavior differences in this mode.

The most notable difference is that unrecognized flags result
in a flag parsing error, and are not returned to the user though
a modified argc/argv, unless they appear after the positional
argument delimiter ("--").

For example, to pass a non-Abseil flag, you would have to do
./mytest --gtest_color=false -- --myflag=myvalue

The documentation at https://abseil.io/docs/cpp/guides/flags
may be helpful in understanding the behavior.

There are some other minor differences. For example,
passing --help results in the program returning 1 instead of 0.

https://github.com/google/googletest/issues/3646

PiperOrigin-RevId: 439312700
Change-Id: Id696a25f50f24a5b1785c45ca8fa59794f86fd5c
2022-04-04 07:39:03 -07:00
..
internal Use the Abseil flags library when Abseil is present 2022-04-04 07:39:03 -07:00
gmock-actions.h Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gmock-cardinalities.h Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gmock-function-mocker.h Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gmock-matchers.h Add a 3-arg overload for ResultOf() matcher that takes a description string for better error messages. 2022-02-09 16:20:06 -08:00
gmock-more-actions.h Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gmock-more-matchers.h Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gmock-nice-strict.h Consistently apply IWYU pragmas across googletest and googlemock headers 2022-01-18 08:11:11 -08:00
gmock-spec-builders.h Running clang-format over all of GoogleTest 2022-03-15 13:42:11 -07:00
gmock.h Consistently apply IWYU pragmas across googletest and googlemock headers 2022-01-18 08:11:11 -08:00