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: -1 $
12 // Description : defines test_tree_visitor
13 // ***************************************************************************
15 #ifndef BOOST_TEST_TREE_VISITOR_HPP_100211GER
16 #define BOOST_TEST_TREE_VISITOR_HPP_100211GER
19 #include <boost/test/detail/config.hpp>
21 #include <boost/test/tree/test_unit.hpp>
23 #include <boost/test/detail/suppress_warnings.hpp>
25 //____________________________________________________________________________//
30 // ************************************************************************** //
31 // ************** test_tree_visitor ************** //
32 // ************************************************************************** //
34 class BOOST_TEST_DECL test_tree_visitor {
36 // test tree visitor interface
37 virtual bool visit( test_unit const& ) { return true; }
38 virtual void visit( test_case const& tc ) { visit( (test_unit const&)tc ); }
39 virtual bool test_suite_start( test_suite const& ts ){ return visit( (test_unit const&)ts ); }
40 virtual void test_suite_finish( test_suite const& ) {}
43 BOOST_TEST_PROTECTED_VIRTUAL ~test_tree_visitor() {}
46 } // namespace unit_test
49 #include <boost/test/detail/enable_warnings.hpp>
51 #endif // BOOST_TEST_TREE_VISITOR_HPP_100211GER