git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@508 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-07-22 07:12:27 +00:00
parent d8dafff661
commit 791f59c0cd
6 changed files with 18 additions and 18 deletions

View file

@ -36,22 +36,22 @@ namespace detail
template< typename T >
static functor_type make_val( T t )
{
return mock::detail::bind( &do_identity< T >, t );
return detail::bind( &do_identity< T >, t );
}
template< typename T >
static functor_type make_val( boost::reference_wrapper< T > t )
{
return mock::detail::bind(
return detail::bind(
&do_ref_identity< T >, t.get_pointer() );
}
template< typename T >
static functor_type make_throw( T t )
{
return mock::detail::bind( &do_throw< T >, t );
return detail::bind( &do_throw< T >, t );
}
static functor_type make_nothing()
{
return mock::detail::bind( &do_nothing );
return detail::bind( &do_nothing );
}
template< typename T >

View file

@ -33,7 +33,7 @@ namespace detail
boost::unit_test::const_string name )
{
if( children_.empty() )
mock::detail::root.add( *this );
detail::root.add( *this );
children_[ &v ].update( parent_, instance, type, name );
}
virtual void add( verifiable& v )
@ -45,7 +45,7 @@ namespace detail
group_.remove( v );
children_.erase( &v );
if( children_.empty() )
mock::detail::root.remove( *this );
detail::root.remove( *this );
}
virtual void serialize( std::ostream& s, const verifiable& v ) const

View file

@ -126,11 +126,11 @@ namespace detail
inline bool verify()
{
return mock::detail::root.verify();
return detail::root.verify();
}
inline void reset()
{
mock::detail::root.reset();
detail::root.reset();
}
} // mock