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:
mat007 2012-07-22 07:14:19 +00:00
parent 9e66d820a6
commit 56edcac48d
9 changed files with 103 additions and 48 deletions

View file

@ -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

View file

@ -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