1 // (C) Copyright Gennadiy Rozental 2005-2008.
2 // Use, modification, and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
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$
12 // Description : Facilities to perform interaction-based testing
13 // ***************************************************************************
15 #ifndef BOOST_TEST_INTERACTION_BASED_IPP_112105GER
16 #define BOOST_TEST_INTERACTION_BASED_IPP_112105GER
19 #include <boost/test/detail/config.hpp>
21 #if BOOST_TEST_SUPPORT_INTERACTION_TESTING
24 #include <boost/test/detail/config.hpp>
25 #include <boost/test/utils/callback.hpp>
26 #include <boost/test/interaction_based.hpp>
27 #include <boost/test/mock_object.hpp>
28 #include <boost/test/framework.hpp> // for setup_error
30 #include <boost/test/detail/suppress_warnings.hpp>
36 //____________________________________________________________________________//
40 namespace itest { // interaction-based testing
42 // ************************************************************************** //
43 // ************** manager ************** //
44 // ************************************************************************** //
48 instance_ptr( true, this );
51 //____________________________________________________________________________//
58 //____________________________________________________________________________//
61 manager::instance_ptr( bool reset, manager* new_ptr )
63 static manager dummy( 0 );
65 static manager* ptr = &dummy;
69 BOOST_TEST_SETUP_ASSERT( ptr == &dummy, BOOST_TEST_L( "Can't run two interation based test the same time" ) );
84 //____________________________________________________________________________//
86 #include <boost/test/detail/enable_warnings.hpp>
88 #endif // not ancient compiler
90 #endif // BOOST_TEST_INTERACTION_BASED_IPP_112105GER