summaryrefslogtreecommitdiffstats
path: root/docs/gmock_cook_book.md
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-01-14 15:42:25 (GMT)
committerDerek Mauro <dmauro@google.com>2021-01-15 20:53:22 (GMT)
commita2f906be697fbeabc24d98814b7df54a62d1cd06 (patch)
treef61fc2e3b9d88cf59e12660ea35d8b22db9882a2 /docs/gmock_cook_book.md
parent6c58c11d5497b6ee1df3cb400ce30deb72fc28c0 (diff)
downloadgoogletest-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.md2
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;
}