Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/test/progress_monitor.hpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 2.7 KB
Line 
1//  (C) Copyright Gennadiy Rozental 2005.
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)
5
6//  See http://www.boost.org/libs/test for the library home page.
7//
8//  File        : $RCSfile: progress_monitor.hpp,v $
9//
10//  Version     : $Revision: 1.4 $
11//
12//  Description : defines simple text based progress monitor
13// ***************************************************************************
14
15#ifndef BOOST_TEST_PROGRESS_MONITOR_HPP_020105GER
16#define BOOST_TEST_PROGRESS_MONITOR_HPP_020105GER
17
18// Boost.Test
19#include <boost/test/test_observer.hpp>
20#include <boost/test/utils/trivial_singleton.hpp>
21
22// STL
23#include <iosfwd>   // for std::ostream&
24
25#include <boost/test/detail/suppress_warnings.hpp>
26
27//____________________________________________________________________________//
28
29namespace boost {
30
31namespace unit_test {
32
33// ************************************************************************** //
34// **************                progress_monitor              ************** //
35// ************************************************************************** //
36
37class BOOST_TEST_DECL progress_monitor_t : public test_observer, public singleton<progress_monitor_t> {
38public:
39    // test observer interface
40    void    test_start( counter_t test_cases_amount );
41    void    test_finish() {}
42    void    test_aborted();
43
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& ) {}
48
49    void    assertion_result( bool ) {}
50    void    exception_caught( execution_exception const& ) {}
51
52    // configuration
53    void    set_stream( std::ostream& );
54
55private:
56    BOOST_TEST_SINGLETON_CONS( progress_monitor_t );
57}; // progress_monitor_t
58
59BOOST_TEST_SINGLETON_INST( progress_monitor )
60
61} // namespace unit_test
62
63} // namespace boost
64
65//____________________________________________________________________________//
66
67#include <boost/test/detail/enable_warnings.hpp>
68
69// ***************************************************************************
70//  Revision History :
71// 
72//  $Log: progress_monitor.hpp,v $
73//  Revision 1.4  2006/02/22 16:22:37  rogeeff
74//  eliminate warning
75//
76//  Revision 1.3  2005/12/14 05:11:07  rogeeff
77//  dll support introduced
78//
79//  Revision 1.2  2005/06/24 04:09:34  rogeeff
80//  added missing iosfwd
81//
82//  Revision 1.1  2005/02/20 08:27:06  rogeeff
83//  This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
84//
85// ***************************************************************************
86
87#endif // BOOST_TEST_PROGRESS_MONITOR_HPP_020105GER
88
Note: See TracBrowser for help on using the repository browser.