1530d2bc9STyler Dauwalder #ifndef _beos_test_listener_h_ 2530d2bc9STyler Dauwalder #define _beos_test_listener_h_ 3530d2bc9STyler Dauwalder 4530d2bc9STyler Dauwalder #include <cppunit/TestListener.h> 5bb24170eSTyler Dauwalder #include <SupportDefs.h> 6530d2bc9STyler Dauwalder 7*58481f0fSOliver Tappe namespace CppUnit { 8*58481f0fSOliver Tappe class Test; 9*58481f0fSOliver Tappe class TestFailure; 10*58481f0fSOliver Tappe class Exception; 11*58481f0fSOliver Tappe } 12530d2bc9STyler Dauwalder 13530d2bc9STyler Dauwalder //! Handles printing of test information 14530d2bc9STyler Dauwalder /*! Receives notification of the beginning and end of each test, 15530d2bc9STyler Dauwalder and notification of all failures and errors. Prints out said 16530d2bc9STyler Dauwalder information in a standard format to standard output. 17530d2bc9STyler Dauwalder 18530d2bc9STyler Dauwalder You should not need to explicitly use this class in any 19530d2bc9STyler Dauwalder of your tests. 20530d2bc9STyler Dauwalder */ 211b89aa98SIngo Weinhold class CPPUNIT_API BTestListener : public CppUnit::TestListener { 22530d2bc9STyler Dauwalder public: 23530d2bc9STyler Dauwalder virtual void startTest( CppUnit::Test *test ); 24530d2bc9STyler Dauwalder virtual void addFailure( const CppUnit::TestFailure &failure ); 25530d2bc9STyler Dauwalder virtual void endTest( CppUnit::Test *test ); 26530d2bc9STyler Dauwalder protected: 27bb24170eSTyler Dauwalder void printTime(bigtime_t time); 28530d2bc9STyler Dauwalder bool fOkay; 29bb24170eSTyler Dauwalder bigtime_t startTime; 30530d2bc9STyler Dauwalder }; 31530d2bc9STyler Dauwalder 32530d2bc9STyler Dauwalder #endif // _beos_test_listener_h_ 33