1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/test/test_observer.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,82 @@
1.4 +// (C) Copyright Gennadiy Rozental 2005.
1.5 +// Distributed under the Boost Software License, Version 1.0.
1.6 +// (See accompanying file LICENSE_1_0.txt or copy at
1.7 +// http://www.boost.org/LICENSE_1_0.txt)
1.8 +
1.9 +// See http://www.boost.org/libs/test for the library home page.
1.10 +//
1.11 +// File : $RCSfile: test_observer.hpp,v $
1.12 +//
1.13 +// Version : $Revision: 1.3 $
1.14 +//
1.15 +// Description : defines abstract interface for test observer
1.16 +// ***************************************************************************
1.17 +
1.18 +#ifndef BOOST_TEST_TEST_OBSERVER_HPP_021005GER
1.19 +#define BOOST_TEST_TEST_OBSERVER_HPP_021005GER
1.20 +
1.21 +// Boost.Test
1.22 +#include <boost/test/detail/fwd_decl.hpp>
1.23 +#include <boost/test/detail/global_typedef.hpp>
1.24 +#include <boost/test/detail/config.hpp>
1.25 +
1.26 +#include <boost/test/detail/suppress_warnings.hpp>
1.27 +
1.28 +//____________________________________________________________________________//
1.29 +
1.30 +namespace boost {
1.31 +
1.32 +namespace unit_test {
1.33 +
1.34 +// ************************************************************************** //
1.35 +// ************** test_observer ************** //
1.36 +// ************************************************************************** //
1.37 +
1.38 +class BOOST_TEST_DECL test_observer {
1.39 +public:
1.40 + // test observer interface
1.41 + virtual void test_start( counter_t /* test_cases_amount */ ) {}
1.42 + virtual void test_finish() {}
1.43 + virtual void test_aborted() {}
1.44 +
1.45 + virtual void test_unit_start( test_unit const& ) {}
1.46 + virtual void test_unit_finish( test_unit const&, unsigned long /* elapsed */ ) {}
1.47 + virtual void test_unit_skipped( test_unit const& ) {}
1.48 + virtual void test_unit_aborted( test_unit const& ) {}
1.49 +
1.50 + virtual void assertion_result( bool /* passed */ ) {}
1.51 + virtual void exception_caught( execution_exception const& ) {}
1.52 +
1.53 + virtual int priority() { return 0; }
1.54 +
1.55 +protected:
1.56 + BOOST_TEST_PROTECTED_VIRTUAL ~test_observer() {}
1.57 +};
1.58 +
1.59 +} // unit_test
1.60 +
1.61 +} // namespace boost
1.62 +
1.63 +//____________________________________________________________________________//
1.64 +
1.65 +#include <boost/test/detail/enable_warnings.hpp>
1.66 +
1.67 +// ***************************************************************************
1.68 +// Revision History :
1.69 +//
1.70 +// $Log: test_observer.hpp,v $
1.71 +// Revision 1.3 2006/03/13 18:28:26 rogeeff
1.72 +// warnings eliminated
1.73 +//
1.74 +// Revision 1.2 2005/12/14 05:15:34 rogeeff
1.75 +// dll support introduced
1.76 +// priority interface added
1.77 +// provide default implementation for interface function
1.78 +//
1.79 +// Revision 1.1 2005/02/20 08:27:06 rogeeff
1.80 +// This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
1.81 +//
1.82 +// ***************************************************************************
1.83 +
1.84 +#endif // BOOST_TEST_TEST_OBSERVER_HPP_021005GER
1.85 +