Fix build break with boost 1.71.0
[platform/core/security/key-manager.git] / tests / colour_log_formatter.h
1 /*
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)
6  *
7  *  See http://www.boost.org/libs/test for the library home page.
8  */
9 /*
10  * @file        colour_log_formatter.h
11  * @author      Zofia Abramowska (z.abramowska@samsung.com)
12  * @version
13  * @brief
14  */
15 #pragma once
16 #include <boost/test/unit_test_log_formatter.hpp>
17
18 namespace CKM {
19 class colour_log_formatter : public boost::unit_test::unit_test_log_formatter {
20 public:
21         // Formatter interface
22         colour_log_formatter() : m_isTestCaseFailed(false) {}
23         void    log_start(
24                 std::ostream &,
25                 boost::unit_test::counter_t test_cases_amount);
26         void    log_finish(std::ostream &);
27         void    log_build_info(std::ostream &);
28         void    log_build_info(std::ostream &output, bool log_build_info = true);
29
30         void    test_unit_start(
31                 std::ostream &,
32                 boost::unit_test::test_unit const &tu);
33         void    test_unit_finish(
34                 std::ostream &,
35                 boost::unit_test::test_unit const &tu,
36                 unsigned long elapsed);
37         void    test_unit_skipped(
38                 std::ostream &,
39                 boost::unit_test::test_unit const &tu);
40
41         void    log_exception(
42                 std::ostream &,
43                 boost::unit_test::log_checkpoint_data const &,
44                 boost::execution_exception const &ex);
45
46         void    log_entry_start(
47                 std::ostream &,
48                 boost::unit_test::log_entry_data const &,
49                 log_entry_types let);
50         void    log_entry_value(
51                 std::ostream &,
52                 boost::unit_test::const_string value);
53         void    log_entry_value(
54                 std::ostream &,
55                 boost::unit_test::lazy_ostream const &value);
56         void    log_entry_finish(std::ostream &);
57
58 #if BOOST_VERSION >= 106501
59         void log_exception_start(std::ostream& os, boost::unit_test::log_checkpoint_data const& lcd, boost::execution_exception const& ex);
60         void log_exception_finish(std::ostream& os);
61         void entry_context_start(std::ostream& os, boost::unit_test::log_level l);
62         void log_entry_context(std::ostream& os, boost::unit_test::log_level l, boost::unit_test::const_string value);
63         void entry_context_finish(std::ostream& os, boost::unit_test::log_level l);
64 #endif
65
66 private:
67         bool m_isTestCaseFailed;
68 };
69 } // namespace CKM