xml_report_formatter.hpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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$
  10. //
  11. // Description : OF_XML report formatter implementation
  12. // ***************************************************************************
  13. #ifndef BOOST_TEST_XML_REPORT_FORMATTER_HPP_020105GER
  14. #define BOOST_TEST_XML_REPORT_FORMATTER_HPP_020105GER
  15. // Boost.Test
  16. #include <boost/test/detail/global_typedef.hpp>
  17. #include <boost/test/results_reporter.hpp>
  18. #include <boost/test/detail/suppress_warnings.hpp>
  19. //____________________________________________________________________________//
  20. namespace boost {
  21. namespace unit_test {
  22. namespace output {
  23. // ************************************************************************** //
  24. // ************** xml_report_formatter ************** //
  25. // ************************************************************************** //
  26. class xml_report_formatter : public results_reporter::format {
  27. public:
  28. // Formatter interface
  29. void results_report_start( std::ostream& ostr );
  30. void results_report_finish( std::ostream& ostr );
  31. void test_unit_report_start( test_unit const&, std::ostream& ostr );
  32. void test_unit_report_finish( test_unit const&, std::ostream& ostr );
  33. void do_confirmation_report( test_unit const&, std::ostream& ostr );
  34. };
  35. } // namespace output
  36. } // namespace unit_test
  37. } // namespace boost
  38. #include <boost/test/detail/enable_warnings.hpp>
  39. #endif // BOOST_TEST_XML_REPORT_FORMATTER_HPP_020105GER