Change char unique_ptr to char vector
[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
29     void    test_unit_start(
30                 std::ostream&,
31                 boost::unit_test::test_unit const& tu );
32     void    test_unit_finish(
33                 std::ostream&,
34                 boost::unit_test::test_unit const& tu,
35                 unsigned long elapsed );
36     void    test_unit_skipped(
37                 std::ostream&,
38                 boost::unit_test::test_unit const& tu );
39
40     void    log_exception(
41                 std::ostream&,
42                 boost::unit_test::log_checkpoint_data const&,
43                 boost::execution_exception const& ex );
44
45     void    log_entry_start(
46                 std::ostream&,
47                 boost::unit_test::log_entry_data const&,
48                 log_entry_types let );
49     void    log_entry_value(
50                 std::ostream&,
51                 boost::unit_test::const_string value );
52     void    log_entry_value(
53                 std::ostream&,
54                 boost::unit_test::lazy_ostream const& value );
55     void    log_entry_finish( std::ostream& );
56 private:
57     bool m_isTestCaseFailed;
58 };
59 } // namespace CKM