mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added support for movable only types as parameters
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@676 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
8c26729399
commit
068f73b0bc
5 changed files with 35 additions and 2 deletions
|
|
@ -361,6 +361,19 @@ BOOST_FIXTURE_TEST_CASE( nullptr_can_be_used_in_place_of_null_pointers_in_constr
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef MOCK_SMART_PTR
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE( unique_ptr_is_supported_as_parameter, error_fixture )
|
||||
{
|
||||
mock::detail::function< void( std::unique_ptr< int > ) > f;
|
||||
f.expect();
|
||||
std::unique_ptr< int > p( new int );
|
||||
f( std::move( p ) );
|
||||
CHECK_CALLS( 1 );
|
||||
}
|
||||
|
||||
#endif // MOCK_SMART_PTR
|
||||
|
||||
// result handling
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE( triggering_an_expectation_with_no_return_set_calls_missing_action, error_fixture )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue