| 1 | // (C) Copyright Gennadiy Rozental 2001. |
| 2 | // Distributed under the Boost Software License, Version 1.0. |
| 3 | // (See accompanying file LICENSE_1_0.txt or copy at |
| 4 | // http://www.boost.org/LICENSE_1_0.txt) |
| 5 | |
| 6 | // See http://www.boost.org/libs/test for the library home page. |
| 7 | // |
| 8 | // File : $RCSfile$ |
| 9 | // |
| 10 | // Version : $Revision: 74640 $ |
| 11 | // |
| 12 | // Description : defines auto_test_unit_registrar |
| 13 | // *************************************************************************** |
| 14 | |
| 15 | #ifndef BOOST_TEST_TREE_AUTO_REGISTRATION_HPP_100211GER |
| 16 | #define BOOST_TEST_TREE_AUTO_REGISTRATION_HPP_100211GER |
| 17 | |
| 18 | // Boost.Test |
| 19 | #include <boost/test/detail/config.hpp> |
| 20 | #include <boost/test/tree/decorator.hpp> |
| 21 | #include <boost/test/tree/test_unit.hpp> |
| 22 | |
| 23 | // STL |
| 24 | #include <list> |
| 25 | |
| 26 | #include <boost/test/detail/suppress_warnings.hpp> |
| 27 | |
| 28 | //____________________________________________________________________________// |
| 29 | |
| 30 | namespace boost { |
| 31 | namespace unit_test { |
| 32 | namespace ut_detail { |
| 33 | |
| 34 | // ************************************************************************** // |
| 35 | // ************** auto_test_unit_registrar ************** // |
| 36 | // ************************************************************************** // |
| 37 | |
| 38 | struct BOOST_TEST_DECL auto_test_unit_registrar { |
| 39 | // Constructors |
| 40 | auto_test_unit_registrar( test_case* tc, decorator::collector_t& decorators, counter_t exp_fail = 0 ); |
| 41 | explicit auto_test_unit_registrar( const_string ts_name, const_string ts_file, std::size_t ts_line, decorator::collector_t& decorators ); |
| 42 | explicit auto_test_unit_registrar( test_unit_generator const& tc_gen, decorator::collector_t& decorators ); |
| 43 | explicit auto_test_unit_registrar( boost::shared_ptr<test_unit_generator> tc_gen, decorator::collector_t& decorators ); |
| 44 | explicit auto_test_unit_registrar( int ); |
| 45 | }; |
| 46 | |
| 47 | } // namespace ut_detail |
| 48 | } // namespace unit_test |
| 49 | } // namespace boost |
| 50 | |
| 51 | #include <boost/test/detail/enable_warnings.hpp> |
| 52 | |
| 53 | #endif // BOOST_TEST_TREE_AUTO_REGISTRATION_HPP_100211GER |
| 54 | |
| 55 | |