// Boost.Range library
//
//  Copyright Neil Groves 2014. Use, modification and
//  distribution is subject to the Boost Software License, Version
//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/range/adaptor/type_erased.hpp>
#include "type_erased_test.hpp"

#include <boost/test/unit_test.hpp>

#include <deque>
#include <list>
#include <vector>

namespace boost_range_adaptor_type_erased_test
{
    namespace
    {

void test_forward()
{
    test_type_erased_exercise_buffer_types<
            std::list<int>, boost::forward_traversal_tag >();

    test_type_erased_exercise_buffer_types<
            std::deque<int>, boost::forward_traversal_tag >();

    test_type_erased_exercise_buffer_types<
            std::vector<int>, boost::forward_traversal_tag >();

    test_type_erased_exercise_buffer_types<
            std::list<MockType>, boost::forward_traversal_tag >();

    test_type_erased_exercise_buffer_types<
            std::deque<MockType>, boost::forward_traversal_tag >();

    test_type_erased_exercise_buffer_types<
            std::vector<MockType>, boost::forward_traversal_tag >();
}

    } // anonymous namespace
} // namespace boost_range_adaptor_type_erased_test

boost::unit_test::test_suite*
init_unit_test_suite(int, char*[])
{
    boost::unit_test::test_suite* test =
        BOOST_TEST_SUITE( "RangeTestSuite.adaptor.type_erased_forward" );

    test->add(BOOST_TEST_CASE(
                  &boost_range_adaptor_type_erased_test::test_forward));

    return test;
}

