blob: acef1508aaf3a329686640bfe41a71f797114776 [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001// (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 <ndnboost/test/detail/global_typedef.hpp>
20#include <ndnboost/test/unit_test_log_formatter.hpp>
21
22#include <ndnboost/test/detail/suppress_warnings.hpp>
23
24//____________________________________________________________________________//
25
26namespace ndnboost {
27
28namespace unit_test {
29
30namespace output {
31
32// ************************************************************************** //
33// ************** compiler_log_formatter ************** //
34// ************************************************************************** //
35
36class BOOST_TEST_DECL compiler_log_formatter : public unit_test_log_formatter {
37public:
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
54protected:
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 ndnboost
63
64//____________________________________________________________________________//
65
66#include <ndnboost/test/detail/enable_warnings.hpp>
67
68#endif // BOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER