1 // (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)
6 // See http://www.boost.org/libs/test for the library home page.
10 // Version : $Revision: 49312 $
12 // Description : defines simple text based progress monitor
13 // ***************************************************************************
15 #ifndef BOOST_TEST_PROGRESS_MONITOR_HPP_020105GER
16 #define BOOST_TEST_PROGRESS_MONITOR_HPP_020105GER
19 #include <boost/test/test_observer.hpp>
20 #include <boost/test/utils/trivial_singleton.hpp>
23 #include <iosfwd> // for std::ostream&
25 #include <boost/test/detail/suppress_warnings.hpp>
27 //____________________________________________________________________________//
33 // ************************************************************************** //
34 // ************** progress_monitor ************** //
35 // ************************************************************************** //
37 class BOOST_TEST_DECL progress_monitor_t : public test_observer, public singleton<progress_monitor_t> {
39 // test observer interface
40 void test_start( counter_t test_cases_amount );
44 void test_unit_start( test_unit const& ) {}
45 void test_unit_finish( test_unit const&, unsigned long );
46 void test_unit_skipped( test_unit const& );
47 void test_unit_aborted( test_unit const& ) {}
49 void assertion_result( bool ) {}
50 void exception_caught( execution_exception const& ) {}
53 void set_stream( std::ostream& );
56 BOOST_TEST_SINGLETON_CONS( progress_monitor_t );
57 }; // progress_monitor_t
59 BOOST_TEST_SINGLETON_INST( progress_monitor )
61 } // namespace unit_test
65 //____________________________________________________________________________//
67 #include <boost/test/detail/enable_warnings.hpp>
69 #endif // BOOST_TEST_PROGRESS_MONITOR_HPP_020105GER