Added tests for mock::detail::check

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@544 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-09-01 17:22:19 +00:00
parent cc0a24a939
commit 77a99b8893
4 changed files with 39 additions and 3 deletions

View file

@ -44,11 +44,11 @@ namespace detail
explicit check( Expected expected )
: expected_( expected )
{}
private:
virtual bool operator()( Actual actual )
{
return actual == boost::unwrap_ref( expected_ );
}
private:
virtual void serialize( std::ostream& s ) const
{
s << mock::format( expected_ );
@ -65,11 +65,11 @@ namespace detail
explicit check( const constraint< Constraint >& c )
: c_( c.f_ )
{}
private:
virtual bool operator()( Actual actual )
{
return c_( actual );
}
private:
virtual void serialize( std::ostream& s ) const
{
s << mock::format( c_ );
@ -89,11 +89,11 @@ namespace detail
explicit check( const Functor& f )
: f_( f )
{}
private:
virtual bool operator()( Actual actual )
{
return f_( actual );
}
private:
virtual void serialize( std::ostream& s ) const
{
s << mock::format( f_ );