summaryrefslogtreecommitdiff
path: root/boost/test/tree/observer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/test/tree/observer.hpp')
-rw-r--r--boost/test/tree/observer.hpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/boost/test/tree/observer.hpp b/boost/test/tree/observer.hpp
index bd6fc9bff5..46b26905e3 100644
--- a/boost/test/tree/observer.hpp
+++ b/boost/test/tree/observer.hpp
@@ -72,6 +72,12 @@ public:
virtual void test_unit_skipped( test_unit const& tu, const_string ) { test_unit_skipped( tu ); }
virtual void test_unit_skipped( test_unit const& ) {} ///< backward compatibility
+ //! Called when the test timed out
+ //!
+ //! This function is called to signal that a test unit (case or suite) timed out.
+ //! A valid test unit is available through boost::unit_test::framework::current_test_unit
+ virtual void test_unit_timed_out( test_unit const& ) {}
+
//! Called when a test unit indicates a fatal error.
//!
//! A fatal error happens when
@@ -79,14 +85,8 @@ public:
//! - an unexpected exception is caught by the Boost.Test framework
virtual void test_unit_aborted( test_unit const& ) {}
- virtual void assertion_result( unit_test::assertion_result ar )
+ virtual void assertion_result( unit_test::assertion_result /* ar */ )
{
- switch( ar ) {
- case AR_PASSED: assertion_result( true ); break;
- case AR_FAILED: assertion_result( false ); break;
- case AR_TRIGGERED: break;
- default: break;
- }
}
//! Called when an exception is intercepted
@@ -101,8 +101,6 @@ public:
virtual int priority() { return 0; }
protected:
- //! Deprecated
- virtual void assertion_result( bool /* passed */ ) {}
BOOST_TEST_PROTECTED_VIRTUAL ~test_observer() {}
};