1 // (C) Copyright Gennadiy Rozental 2001.
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)
6 // See http://www.boost.org/libs/test for the library home page.
10 // Version : $Revision: 74248 $
12 // Description : toolbox implementation types and forward declarations
13 // ***************************************************************************
15 #ifndef BOOST_TEST_TOOLS_DETAIL_FWD_HPP_012705GER
16 #define BOOST_TEST_TOOLS_DETAIL_FWD_HPP_012705GER
19 #include <boost/test/detail/config.hpp>
20 #include <boost/test/utils/basic_cstring/io.hpp>
23 #include <cstddef> // for std::size_t
25 #include <boost/test/detail/suppress_warnings.hpp>
27 //____________________________________________________________________________//
34 } // namespace unit_test
36 namespace test_tools {
38 using unit_test::const_string;
39 class assertion_result;
41 //____________________________________________________________________________//
45 inline bool dummy_cond() { return false; }
47 // ************************************************************************** //
48 // ************** types of supported assertions ************** //
49 // ************************************************************************** //
51 //____________________________________________________________________________//
71 //____________________________________________________________________________//
73 // ************************************************************************** //
74 // ************** levels of supported assertions ************** //
75 // ************************************************************************** //
78 WARN, CHECK, REQUIRE, PASS
81 //____________________________________________________________________________//
83 // ************************************************************************** //
84 // ************** Tools offline implementation ************** //
85 // ************************************************************************** //
88 report_assertion( assertion_result const& pr, unit_test::lazy_ostream const& assertion_descr,
89 const_string file_name, std::size_t line_num,
90 tool_level tl, check_type ct,
91 std::size_t num_args, ... );
93 //____________________________________________________________________________//
95 BOOST_TEST_DECL assertion_result
96 format_assertion_result( const_string expr_val, const_string details );
98 //____________________________________________________________________________//
100 BOOST_TEST_DECL assertion_result
101 format_fpc_report( const_string expr_val, const_string details );
103 //____________________________________________________________________________//
106 is_defined_impl( const_string symbol_name, const_string symbol_value );
108 //____________________________________________________________________________//
110 BOOST_TEST_DECL assertion_result
111 equal_impl( char const* left, char const* right );
113 //____________________________________________________________________________//
115 } // namespace tt_detail
116 } // namespace test_tools
119 #include <boost/test/detail/enable_warnings.hpp>
121 #endif // BOOST_TEST_TOOLS_DETAIL_FWD_HPP_012705GER