Home | History | Annotate | Download | only in output
      1 //  (C) Copyright Gennadiy Rozental 2005-2008.
      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: 57992 $
     11 //
     12 //  Description : contains compiler like Log formatter definition
     13 // ***************************************************************************
     14 
     15 #ifndef BOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
     16 #define BOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
     17 
     18 // Boost.Test
     19 #include <boost/test/detail/global_typedef.hpp>
     20 #include <boost/test/unit_test_log_formatter.hpp>
     21 
     22 #include <boost/test/detail/suppress_warnings.hpp>
     23 
     24 //____________________________________________________________________________//
     25 
     26 namespace boost {
     27 
     28 namespace unit_test {
     29 
     30 namespace output {
     31 
     32 // ************************************************************************** //
     33 // **************             compiler_log_formatter           ************** //
     34 // ************************************************************************** //
     35 
     36 class BOOST_TEST_DECL compiler_log_formatter : public unit_test_log_formatter {
     37 public:
     38     // Formatter interface
     39     void    log_start( std::ostream&, counter_t test_cases_amount );
     40     void    log_finish( std::ostream& );
     41     void    log_build_info( std::ostream& );
     42 
     43     void    test_unit_start( std::ostream&, test_unit const& tu );
     44     void    test_unit_finish( std::ostream&, test_unit const& tu, unsigned long elapsed );
     45     void    test_unit_skipped( std::ostream&, test_unit const& tu );
     46 
     47     void    log_exception( std::ostream&, log_checkpoint_data const&, execution_exception const& ex );
     48 
     49     void    log_entry_start( std::ostream&, log_entry_data const&, log_entry_types let );
     50     void    log_entry_value( std::ostream&, const_string value );
     51     void    log_entry_value( std::ostream&, lazy_ostream const& value );
     52     void    log_entry_finish( std::ostream& );
     53 
     54 protected:
     55     virtual void    print_prefix( std::ostream&, const_string file, std::size_t line );
     56 };
     57 
     58 } // namespace output
     59 
     60 } // namespace unit_test
     61 
     62 } // namespace boost
     63 
     64 //____________________________________________________________________________//
     65 
     66 #include <boost/test/detail/enable_warnings.hpp>
     67 
     68 #endif // BOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
     69