00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef LOG4SENDPP_CPPUNIT_LISTENER_H
00031 #define LOG4SENDPP_CPPUNIT_LISTENER_H
00032
00033 #include <log4sendpp/log4sendpp.h>
00034
00035 #ifdef LOG4SENDPP_USE_CPPUNIT
00036
00037 #include <cppunit/TextTestProgressListener.h>
00038
00039
00040 LOG4SENDPP_NS_START
00041
00042
00045 class LOG4SENDPP_API_DECL0 CppUnitListener : public CppUnit::TextTestProgressListener
00046 {
00047 public:
00048
00052 void startTest( CppUnit::Test *test );
00053
00057 void addFailure( const CppUnit::TestFailure &failure );
00058
00062 void endTest(CppUnit::Test *test);
00063
00064 private:
00065
00066 LOG4SENDPP_STD_NS::time_t starttime;
00067 };
00068
00069
00070 LOG4SENDPP_NS_END
00071
00072
00073 #endif // LOG4SENDPP_USE_CPPUNIT
00074
00075 #endif // LOG4SENDPP_CPPUNIT_LISTENER_H
00076