| 1 | // Boost.Range library |
|---|---|
| 2 | // |
| 3 | // Copyright Neil Groves 2010. Use, modification and |
| 4 | // distribution is subject to the Boost Software License, Version |
| 5 | // 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
| 6 | // http://www.boost.org/LICENSE_1_0.txt) |
| 7 | // |
| 8 | #include <boost/range/adaptor/type_erased.hpp> |
| 9 | #include "type_erased_test.hpp" |
| 10 | |
| 11 | #include <boost/test/unit_test.hpp> |
| 12 | |
| 13 | #include <list> |
| 14 | #include <vector> |
| 15 | |
| 16 | namespace boost_range_adaptor_type_erased_test |
| 17 | { |
| 18 | namespace |
| 19 | { |
| 20 | |
| 21 | void test_type_erased() |
| 22 | { |
| 23 | test_driver< std::list<int> >(); |
| 24 | test_driver< std::vector<int> >(); |
| 25 | |
| 26 | test_driver< std::list<MockType> >(); |
| 27 | test_driver< std::vector<MockType> >(); |
| 28 | } |
| 29 | |
| 30 | } // anonymous namespace |
| 31 | } // namespace boost_range_adaptor_type_erased_test |
| 32 | |
| 33 | boost::unit_test::test_suite* |
| 34 | init_unit_test_suite(int argc, char* argv[]) |
| 35 | { |
| 36 | boost::unit_test::test_suite* test = |
| 37 | BOOST_TEST_SUITE("RangeTestSuite.adaptor.type_erased"); |
| 38 | |
| 39 | test->add(BOOST_TEST_CASE( |
| 40 | &boost_range_adaptor_type_erased_test::test_type_erased)); |
| 41 | |
| 42 | return test; |
| 43 | } |
| 44 | |
| 45 |
