sl@0: // (C) Copyright Gennadiy Rozental 2005. sl@0: // Distributed under the Boost Software License, Version 1.0. sl@0: // (See accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: sl@0: // See http://www.boost.org/libs/test for the library home page. sl@0: // sl@0: // File : $RCSfile: test_observer.hpp,v $ sl@0: // sl@0: // Version : $Revision: 1.3 $ sl@0: // sl@0: // Description : defines abstract interface for test observer sl@0: // *************************************************************************** sl@0: sl@0: #ifndef BOOST_TEST_TEST_OBSERVER_HPP_021005GER sl@0: #define BOOST_TEST_TEST_OBSERVER_HPP_021005GER sl@0: sl@0: // Boost.Test sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include sl@0: sl@0: //____________________________________________________________________________// sl@0: sl@0: namespace boost { sl@0: sl@0: namespace unit_test { sl@0: sl@0: // ************************************************************************** // sl@0: // ************** test_observer ************** // sl@0: // ************************************************************************** // sl@0: sl@0: class BOOST_TEST_DECL test_observer { sl@0: public: sl@0: // test observer interface sl@0: virtual void test_start( counter_t /* test_cases_amount */ ) {} sl@0: virtual void test_finish() {} sl@0: virtual void test_aborted() {} sl@0: sl@0: virtual void test_unit_start( test_unit const& ) {} sl@0: virtual void test_unit_finish( test_unit const&, unsigned long /* elapsed */ ) {} sl@0: virtual void test_unit_skipped( test_unit const& ) {} sl@0: virtual void test_unit_aborted( test_unit const& ) {} sl@0: sl@0: virtual void assertion_result( bool /* passed */ ) {} sl@0: virtual void exception_caught( execution_exception const& ) {} sl@0: sl@0: virtual int priority() { return 0; } sl@0: sl@0: protected: sl@0: BOOST_TEST_PROTECTED_VIRTUAL ~test_observer() {} sl@0: }; sl@0: sl@0: } // unit_test sl@0: sl@0: } // namespace boost sl@0: sl@0: //____________________________________________________________________________// sl@0: sl@0: #include sl@0: sl@0: // *************************************************************************** sl@0: // Revision History : sl@0: // sl@0: // $Log: test_observer.hpp,v $ sl@0: // Revision 1.3 2006/03/13 18:28:26 rogeeff sl@0: // warnings eliminated sl@0: // sl@0: // Revision 1.2 2005/12/14 05:15:34 rogeeff sl@0: // dll support introduced sl@0: // priority interface added sl@0: // provide default implementation for interface function sl@0: // sl@0: // Revision 1.1 2005/02/20 08:27:06 rogeeff sl@0: // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates sl@0: // sl@0: // *************************************************************************** sl@0: sl@0: #endif // BOOST_TEST_TEST_OBSERVER_HPP_021005GER sl@0: