2 * (C) Copyright Gennadiy Rozental 2005-2008.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
7 * See http://www.boost.org/libs/test for the library home page.
10 * @file colour_log_formatter.h
11 * @author Zofia Abramowska (z.abramowska@samsung.com)
16 #include <boost/test/unit_test_log_formatter.hpp>
19 class colour_log_formatter : public boost::unit_test::unit_test_log_formatter {
21 // Formatter interface
22 colour_log_formatter() : m_isTestCaseFailed(false) {}
25 boost::unit_test::counter_t test_cases_amount);
26 void log_finish(std::ostream &);
27 #if BOOST_VERSION >= 107000
28 void log_build_info(std::ostream & out, bool );
30 void log_build_info(std::ostream &);
35 boost::unit_test::test_unit const &tu);
36 void test_unit_finish(
38 boost::unit_test::test_unit const &tu,
39 unsigned long elapsed);
40 void test_unit_skipped(
42 boost::unit_test::test_unit const &tu);
44 void log_exception(std::ostream &,
45 boost::unit_test::log_checkpoint_data const &,
46 boost::execution_exception const &ex);
47 void log_exception_start(
49 boost::unit_test::log_checkpoint_data const &,
50 boost::execution_exception const &ex);
51 void log_exception_finish(
56 boost::unit_test::log_entry_data const &,
60 boost::unit_test::const_string value);
63 boost::unit_test::lazy_ostream const &value);
64 void log_entry_finish(std::ostream &);
66 void entry_context_start(
68 boost::unit_test::log_level l);
69 void log_entry_context(
71 boost::unit_test::const_string value);
72 void entry_context_finish(std::ostream &);
74 void log_entry_context(
76 boost::unit_test::log_level,
77 boost::unit_test::const_string);
78 void entry_context_finish(
80 boost::unit_test::log_level);
83 bool m_isTestCaseFailed;
85 } // namespace cryptsvc