mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
More examples
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@14 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
9be6106311
commit
42d1e5add3
1 changed files with 18 additions and 0 deletions
|
|
@ -19,6 +19,24 @@
|
|||
# pragma warning( disable : 4355 4505 )
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
struct my_custom_mock_object : mock::object
|
||||
{
|
||||
my_custom_mock_object()
|
||||
: mock::object( "my_custom_mock_object" )
|
||||
{}
|
||||
MOCK_METHOD_EXT( my_method, 0, void(), my_method )
|
||||
};
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( custom_mock_object_without_macros )
|
||||
{
|
||||
my_custom_mock_object mock;
|
||||
MOCK_EXPECT( mock, my_method );
|
||||
mock.my_method();
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
MOCK_CLASS( my_mock )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue