A user can define a custom matcher either by defining a free function or
implementing the MatcherInterface. Google Mock provides several helpers to
make the latter easier, but still they are not quite straightforward.
We can provide macros like
MOCK_MATCHER(MatcherName) { .... matcher body ... }
MOCK_MATCHER_P2(MatcherName, arg1_name, arg2_name) { ... matcher body ...
}
to make defining single-use matchers even easier.
Original issue reported on code.google.com by shiq...@gmail.com on 23 Dec 2008 at 5:13
Original issue reported on code.google.com by
shiq...@gmail.com
on 23 Dec 2008 at 5:13