mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added variadic macro support for MOCK_BASE_CLASS and MOCK_FUNCTOR
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@599 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
a1436f26e6
commit
68ae1ada45
2 changed files with 19 additions and 2 deletions
|
|
@ -315,6 +315,9 @@ namespace
|
|||
MOCK_STATIC_METHOD( m9, 0, void(), m9 )
|
||||
};
|
||||
|
||||
MOCK_BASE_CLASS( comma_base, std::map< int, int > )
|
||||
{};
|
||||
|
||||
template< typename T >
|
||||
MOCK_CLASS( variadic_tpl )
|
||||
{
|
||||
|
|
@ -330,6 +333,8 @@ namespace
|
|||
|
||||
MOCK_FUNCTION( fun1, 0, void() )
|
||||
MOCK_FUNCTION( fun2, 0, void(), fun2 )
|
||||
|
||||
MOCK_FUNCTOR( f_variadic, std::map< int, int >() );
|
||||
}
|
||||
|
||||
#endif //BOOST_NO_VARIADIC_MACROS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue