chronos38 / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

need MockFunction #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Chris Pickel suggested [1] as a generalization of [2].

After some discussion, I proposed:

How about generalizing it to MockFunction<F> with a single mock method
Call()?  You instantiate MockFunction with a function type F (as used
in MOCK_METHODn).  When F returns void, we get your use case.  F
returning non-void can be useful for other use cases.

[1] http://sfiera.net/~sfiera/receiver.h
[2] http://code.google.com/p/googlemock/wiki/CookBook#Using_Check_Points

Original issue reported on code.google.com by zhanyong...@gmail.com on 5 Jun 2009 at 5:41

GoogleCodeExporter commented 9 years ago
Issue 23 has been merged into this issue.

Original comment by zhanyong...@gmail.com on 5 Jun 2009 at 5:42

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 23 Sep 2009 at 10:28

GoogleCodeExporter commented 9 years ago
implemented in revision 213 in trunk.

Original comment by zhanyong...@gmail.com on 25 Sep 2009 at 10:35

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 25 Sep 2009 at 10:35