[857] | 1 | // (C) Copyright Gennadiy Rozental 2005.
|
---|
| 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: xml_log_formatter.hpp,v $
|
---|
| 9 | //
|
---|
| 10 | // Version : $Revision: 1.2 $
|
---|
| 11 | //
|
---|
| 12 | // Description : contains XML Log formatter definition
|
---|
| 13 | // ***************************************************************************
|
---|
| 14 |
|
---|
| 15 | #ifndef BOOST_TEST_XML_LOG_FORMATTER_020105GER
|
---|
| 16 | #define BOOST_TEST_XML_LOG_FORMATTER_020105GER
|
---|
| 17 |
|
---|
| 18 | // Boost.Test
|
---|
| 19 | #include <boost/test/detail/global_typedef.hpp>
|
---|
| 20 | #include <boost/test/unit_test_log_formatter.hpp>
|
---|
| 21 |
|
---|
| 22 | // STL
|
---|
| 23 | #include <cstddef> // std::size_t
|
---|
| 24 |
|
---|
| 25 | #include <boost/test/detail/suppress_warnings.hpp>
|
---|
| 26 |
|
---|
| 27 | //____________________________________________________________________________//
|
---|
| 28 |
|
---|
| 29 | namespace boost {
|
---|
| 30 |
|
---|
| 31 | namespace unit_test {
|
---|
| 32 |
|
---|
| 33 | namespace output {
|
---|
| 34 |
|
---|
| 35 | // ************************************************************************** //
|
---|
| 36 | // ************** xml_log_formatter ************** //
|
---|
| 37 | // ************************************************************************** //
|
---|
| 38 |
|
---|
| 39 | class xml_log_formatter : public unit_test_log_formatter {
|
---|
| 40 | public:
|
---|
| 41 | // Formatter interface
|
---|
| 42 | void log_start( std::ostream&, counter_t test_cases_amount );
|
---|
| 43 | void log_finish( std::ostream& );
|
---|
| 44 | void log_build_info( std::ostream& );
|
---|
| 45 |
|
---|
| 46 | void test_unit_start( std::ostream&, test_unit const& tu );
|
---|
| 47 | void test_unit_finish( std::ostream&, test_unit const& tu, unsigned long elapsed );
|
---|
| 48 | void test_unit_skipped( std::ostream&, test_unit const& tu );
|
---|
| 49 |
|
---|
| 50 | void log_exception( std::ostream&, log_checkpoint_data const&, const_string explanation );
|
---|
| 51 |
|
---|
| 52 | void log_entry_start( std::ostream&, log_entry_data const&, log_entry_types let );
|
---|
| 53 | void log_entry_value( std::ostream&, const_string value );
|
---|
| 54 | void log_entry_finish( std::ostream& );
|
---|
| 55 |
|
---|
| 56 | private:
|
---|
| 57 | // Data members
|
---|
| 58 | const_string m_curr_tag;
|
---|
| 59 | };
|
---|
| 60 |
|
---|
| 61 | } // namespace output
|
---|
| 62 |
|
---|
| 63 | } // namespace unit_test
|
---|
| 64 |
|
---|
| 65 | } // namespace boost
|
---|
| 66 |
|
---|
| 67 | //____________________________________________________________________________//
|
---|
| 68 |
|
---|
| 69 | #include <boost/test/detail/enable_warnings.hpp>
|
---|
| 70 |
|
---|
| 71 | // ***************************************************************************
|
---|
| 72 | // Revision History :
|
---|
| 73 | //
|
---|
| 74 | // $Log: xml_log_formatter.hpp,v $
|
---|
| 75 | // Revision 1.2 2005/02/20 08:27:08 rogeeff
|
---|
| 76 | // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
|
---|
| 77 | //
|
---|
| 78 | // Revision 1.1 2005/02/01 08:59:39 rogeeff
|
---|
| 79 | // supplied_log_formatters split
|
---|
| 80 | // change formatters interface to simplify result interface
|
---|
| 81 | //
|
---|
| 82 | // ***************************************************************************
|
---|
| 83 |
|
---|
| 84 | #endif // BOOST_TEST_XML_LOG_FORMATTER_020105GER
|
---|