mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Separating reset and verify
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@513 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
9e66d820a6
commit
56edcac48d
9 changed files with 103 additions and 48 deletions
|
|
@ -47,18 +47,4 @@
|
|||
#undef BOOST_PP_FILENAME_1
|
||||
#undef BOOST_PP_ITERATION_LIMITS
|
||||
|
||||
namespace mock
|
||||
{
|
||||
template< typename Signature >
|
||||
bool verify( const detail::function< Signature >& f )
|
||||
{
|
||||
return f.verify();
|
||||
}
|
||||
template< typename Signature >
|
||||
void reset( detail::function< Signature >& f )
|
||||
{
|
||||
f.reset();
|
||||
}
|
||||
} // mock
|
||||
|
||||
#endif // MOCK_FUNCTION_HPP_INCLUDED
|
||||
|
|
|
|||
|
|
@ -123,15 +123,6 @@ namespace detail
|
|||
};
|
||||
BOOST_TEST_SINGLETON_INST( root )
|
||||
}
|
||||
|
||||
inline bool verify()
|
||||
{
|
||||
return detail::root.verify();
|
||||
}
|
||||
inline void reset()
|
||||
{
|
||||
detail::root.reset();
|
||||
}
|
||||
} // mock
|
||||
|
||||
#endif // MOCK_ROOT_HPP_INCLUDED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue