blob: f41df07d9a549b751468e9be3867db1bdb977fe6 [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
Jeff Thompson3d613fd2013-10-15 15:39:04 -070015#ifndef NDNBOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
16#define NDNBOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070017
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
Jeff Thompson3d613fd2013-10-15 15:39:04 -070036class NDNBOOST_TEST_DECL compiler_log_formatter : public unit_test_log_formatter {
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070037public:
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
Jeff Thompson3d613fd2013-10-15 15:39:04 -070068#endif // NDNBOOST_TEST_COMPILER_LOG_FORMATTER_HPP_020105GER