auto_registration.hpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. // See http://www.boost.org/libs/test for the library home page.
  6. //
  7. // File : $RCSfile$
  8. //
  9. // Version : $Revision: 74640 $
  10. //
  11. // Description : defines auto_test_unit_registrar
  12. // ***************************************************************************
  13. #ifndef BOOST_TEST_TREE_AUTO_REGISTRATION_HPP_100211GER
  14. #define BOOST_TEST_TREE_AUTO_REGISTRATION_HPP_100211GER
  15. // Boost.Test
  16. #include <boost/test/detail/config.hpp>
  17. #include <boost/test/tree/decorator.hpp>
  18. #include <boost/test/tree/test_unit.hpp>
  19. // STL
  20. #include <list>
  21. #include <boost/test/detail/suppress_warnings.hpp>
  22. //____________________________________________________________________________//
  23. namespace boost {
  24. namespace unit_test {
  25. namespace ut_detail {
  26. // ************************************************************************** //
  27. // ************** auto_test_unit_registrar ************** //
  28. // ************************************************************************** //
  29. struct BOOST_TEST_DECL auto_test_unit_registrar {
  30. // Constructors
  31. auto_test_unit_registrar( test_case* tc, decorator::collector_t& decorators, counter_t exp_fail = 0 );
  32. explicit auto_test_unit_registrar( const_string ts_name, const_string ts_file, std::size_t ts_line, decorator::collector_t& decorators );
  33. explicit auto_test_unit_registrar( test_unit_generator const& tc_gen, decorator::collector_t& decorators );
  34. explicit auto_test_unit_registrar( boost::shared_ptr<test_unit_generator> tc_gen, decorator::collector_t& decorators );
  35. explicit auto_test_unit_registrar( int );
  36. };
  37. } // namespace ut_detail
  38. } // namespace unit_test
  39. } // namespace boost
  40. #include <boost/test/detail/enable_warnings.hpp>
  41. #endif // BOOST_TEST_TREE_AUTO_REGISTRATION_HPP_100211GER