123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- #ifndef BOOST_TEST_RESULTS_REPORTER_HPP_021205GER
- #define BOOST_TEST_RESULTS_REPORTER_HPP_021205GER
- #include <boost/test/detail/global_typedef.hpp>
- #include <boost/test/detail/fwd_decl.hpp>
- #include <iosfwd>
- #include <boost/test/detail/suppress_warnings.hpp>
- namespace boost {
- namespace unit_test {
- namespace results_reporter {
- class BOOST_TEST_DECL format {
- public:
-
- virtual ~format() {}
- virtual void results_report_start( std::ostream& ostr ) = 0;
- virtual void results_report_finish( std::ostream& ostr ) = 0;
- virtual void test_unit_report_start( test_unit const&, std::ostream& ostr ) = 0;
- virtual void test_unit_report_finish( test_unit const&, std::ostream& ostr ) = 0;
- virtual void do_confirmation_report( test_unit const&, std::ostream& ostr ) = 0;
- };
- BOOST_TEST_DECL void set_level( report_level l );
- BOOST_TEST_DECL void set_stream( std::ostream& );
- BOOST_TEST_DECL void set_format( output_format of );
- BOOST_TEST_DECL void set_format( results_reporter::format* f );
- BOOST_TEST_DECL std::ostream& get_stream();
- BOOST_TEST_DECL void make_report( report_level l = INV_REPORT_LEVEL, test_unit_id = INV_TEST_UNIT_ID );
- inline void confirmation_report( test_unit_id id = INV_TEST_UNIT_ID )
- { make_report( CONFIRMATION_REPORT, id ); }
- inline void short_report( test_unit_id id = INV_TEST_UNIT_ID )
- { make_report( SHORT_REPORT, id ); }
- inline void detailed_report( test_unit_id id = INV_TEST_UNIT_ID )
- { make_report( DETAILED_REPORT, id ); }
- }
- }
- }
- #include <boost/test/detail/enable_warnings.hpp>
- #endif
|