Replaced std::type_info with boost::detail::sp_typeinfo

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@553 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-09-02 21:31:24 +00:00
parent 8aa007af3b
commit 25ccf6078f
4 changed files with 11 additions and 9 deletions

View file

@ -32,7 +32,7 @@ namespace
{
fixture()
{
mock::detail::configure( o, e, "instance", mock::detail::type_name( typeid( o ) ), "name" );
mock::detail::configure( o, e, "instance", mock::detail::type_name( BOOST_SP_TYPEID( o ) ), "name" );
}
object o;
mock::detail::function< void() > e;
@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE( an_object_is_assignable_by_sharing_its_state )
mock::detail::function< void() > e;
{
object o2;
mock::detail::configure( o2, e, "instance", mock::detail::type_name( typeid( o2 ) ), "name" );
mock::detail::configure( o2, e, "instance", mock::detail::type_name( BOOST_SP_TYPEID( o2 ) ), "name" );
e.expect().once();
o1 = o2;
BOOST_CHECK( ! mock::verify( o2 ) );
@ -82,7 +82,7 @@ BOOST_AUTO_TEST_CASE( an_object_is_copiable_by_sharing_its_state )
std::auto_ptr< object > o2( new object );
const object o1( *o2 );
mock::detail::function< void() > e;
mock::detail::configure( *o2, e, "instance", mock::detail::type_name( typeid( *o2 ) ), "name" );
mock::detail::configure( *o2, e, "instance", mock::detail::type_name( BOOST_SP_TYPEID( *o2 ) ), "name" );
e.expect().once();
BOOST_CHECK( ! mock::verify( *o2 ) );
BOOST_CHECK( ! mock::verify( o1 ) );