Update from deprecated unit test header inclusion

This commit is contained in:
Alexander Grund 2020-07-12 17:53:18 +02:00
parent d9a10afc12
commit c2617ba360
No known key found for this signature in database
GPG key ID: AA48A0760367A42B
30 changed files with 30 additions and 30 deletions

View file

@ -50,7 +50,7 @@ struct configurable_mock_error
#define MOCK_USE_BOOST_TEST #define MOCK_USE_BOOST_TEST
//[ prerequisite //[ prerequisite
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
//] //]
#include "calculator.hpp" #include "calculator.hpp"

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace namespace

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace namespace

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
//[ limitations_non_virtual_method_problem //[ limitations_non_virtual_method_problem

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace namespace

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace namespace

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace limitations_template_method_problem namespace limitations_template_method_problem

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace namespace

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
#include "calculator.hpp" #include "calculator.hpp"
#include "mock_view.hpp" #include "mock_view.hpp"

View file

@ -38,7 +38,7 @@ namespace mock_test
} }
//[ async_call_solution //[ async_call_solution
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>

View file

@ -32,7 +32,7 @@ void function( base_class& c)
} }
//[ invoke_functor_solution //[ invoke_functor_solution
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace namespace

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
//[ quick_constraint_problem //[ quick_constraint_problem
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
#include <iostream> #include <iostream>

View file

@ -38,7 +38,7 @@ namespace mock_test
} }
//[ retrieve_cref_solution //[ retrieve_cref_solution
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace mock_test namespace mock_test

View file

@ -10,7 +10,7 @@
#define ASSERT_VERIFY_FAIL() mock::reset() #define ASSERT_VERIFY_FAIL() mock::reset()
//[ static_objects_problem //[ static_objects_problem
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
#include <ostream> #include <ostream>

View file

@ -6,7 +6,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at // (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
namespace class_example_1 namespace class_example_1

View file

@ -10,7 +10,7 @@
#include "../undefined.hpp" #include "../undefined.hpp"
#include <turtle/detail/function.hpp> #include <turtle/detail/function.hpp>
#include <turtle/constraints.hpp> #include <turtle/constraints.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <type_traits> #include <type_traits>

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/detail/invocation.hpp> #include <turtle/detail/invocation.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( unlimited ) BOOST_AUTO_TEST_CASE( unlimited )
{ {

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/detail/is_functor.hpp> #include <turtle/detail/is_functor.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#ifdef BOOST_MSVC #ifdef BOOST_MSVC
#pragma warning( push, 0 ) #pragma warning( push, 0 )
#endif #endif

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/detail/signature.hpp> #include <turtle/detail/signature.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <type_traits> #include <type_traits>
namespace namespace

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/detail/type_name.hpp> #include <turtle/detail/type_name.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <sstream> #include <sstream>
namespace namespace

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/constraint.hpp> #include <turtle/constraint.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
namespace namespace
{ {

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/constraints.hpp> #include <turtle/constraints.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( all_comparison_constraints_can_be_instanciated ) BOOST_AUTO_TEST_CASE( all_comparison_constraints_can_be_instanciated )
{ {

View file

@ -8,7 +8,7 @@
#define MOCK_USE_BOOST_TEST #define MOCK_USE_BOOST_TEST
#include <turtle/exception.hpp> #include <turtle/exception.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( a_mock_exception_is_not_an_std_exception_to_not_mess_with_user_exceptions ) BOOST_AUTO_TEST_CASE( a_mock_exception_is_not_an_std_exception_to_not_mess_with_user_exceptions )
{ {

View file

@ -9,7 +9,7 @@
#include "mock_error.hpp" #include "mock_error.hpp"
#include "undefined.hpp" #include "undefined.hpp"
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/optional.hpp> #include <boost/optional.hpp>
#include <cmath> #include <cmath>
#include <functional> #include <functional>

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/log.hpp> #include <turtle/log.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/assign.hpp> #include <boost/assign.hpp>
#include <boost/weak_ptr.hpp> #include <boost/weak_ptr.hpp>
#include <boost/optional.hpp> #include <boost/optional.hpp>

View file

@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
#include <turtle/detail/function.hpp> #include <turtle/detail/function.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
namespace namespace
{ {

View file

@ -8,7 +8,7 @@
#include "mock_error.hpp" #include "mock_error.hpp"
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/preprocessor/repetition/enum.hpp> #include <boost/preprocessor/repetition/enum.hpp>
#define IDENTITY(z, n, d) d #define IDENTITY(z, n, d) d

View file

@ -8,7 +8,7 @@
#include "mock_error.hpp" #include "mock_error.hpp"
#include <turtle/mock.hpp> #include <turtle/mock.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <functional> #include <functional>
namespace namespace

View file

@ -10,7 +10,7 @@
#include <turtle/reset.hpp> #include <turtle/reset.hpp>
#include <turtle/verify.hpp> #include <turtle/verify.hpp>
#include <turtle/detail/function.hpp> #include <turtle/detail/function.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <memory> #include <memory>
namespace namespace

View file

@ -9,7 +9,7 @@
#include "mock_error.hpp" #include "mock_error.hpp"
#include <turtle/sequence.hpp> #include <turtle/sequence.hpp>
#include <turtle/detail/function.hpp> #include <turtle/detail/function.hpp>
#include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_CASE( registering_to_a_sequence_and_calling_out_of_order_throws, mock_error_fixture ) BOOST_FIXTURE_TEST_CASE( registering_to_a_sequence_and_calling_out_of_order_throws, mock_error_fixture )
{ {