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