diff options
author | Abseil Team <absl-team@google.com> | 2021-01-14 15:42:25 (GMT) |
---|---|---|
committer | Derek Mauro <dmauro@google.com> | 2021-01-15 20:53:22 (GMT) |
commit | a2f906be697fbeabc24d98814b7df54a62d1cd06 (patch) | |
tree | f61fc2e3b9d88cf59e12660ea35d8b22db9882a2 /docs/gmock_cook_book.md | |
parent | 6c58c11d5497b6ee1df3cb400ce30deb72fc28c0 (diff) | |
download | googletest-a2f906be697fbeabc24d98814b7df54a62d1cd06.zip googletest-a2f906be697fbeabc24d98814b7df54a62d1cd06.tar.gz googletest-a2f906be697fbeabc24d98814b7df54a62d1cd06.tar.bz2 |
Googletest export
Add "using is_gtest_matcher = void" to the DivisibleBy7Matcher example.
PiperOrigin-RevId: 351797821
Diffstat (limited to 'docs/gmock_cook_book.md')
-rw-r--r-- | docs/gmock_cook_book.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md index b7d9f44..3707d81 100644 --- a/docs/gmock_cook_book.md +++ b/docs/gmock_cook_book.md @@ -3584,6 +3584,8 @@ using ::testing::Matcher; class DivisibleBy7Matcher { public: + using is_gtest_matcher = void; + bool MatchAndExplain(int n, std::ostream*) const { return (n % 7) == 0; } |