mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added MOCK_NO_AUTO_PTR to deactivate std::auto_ptr support
This commit is contained in:
parent
238fff3fe2
commit
a22ca57253
8 changed files with 29 additions and 3 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include <turtle/verify.hpp>
|
||||
#include <turtle/detail/function.hpp>
|
||||
#include <boost/test/auto_unit_test.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
@ -89,7 +90,7 @@ BOOST_FIXTURE_TEST_CASE( an_object_is_assignable_by_sharing_its_state, mock_erro
|
|||
|
||||
BOOST_FIXTURE_TEST_CASE( an_object_is_copiable_by_sharing_its_state, mock_error_fixture )
|
||||
{
|
||||
std::auto_ptr< object > o2( new object );
|
||||
boost::scoped_ptr< object > o2( new object );
|
||||
const object o1( *o2 );
|
||||
mock::detail::function< void() > e;
|
||||
mock::detail::configure( *o2, e, "instance", MOCK_TYPE_NAME(*o2), "name" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue