Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members  

C:/marty/b3/wxTest/include/wxTest/TestBase.h

Go to the documentation of this file.
00001 #ifndef __WXTESTBASE_H__
00002 #define __WXTESTBASE_H__
00003 
00004 #include <wxTest/ITest.h>
00005 
00006 WXTEST_BEGIN_NAMESPACE
00007 
00016 class wxTestBase : public wxITest
00017 {
00018 public:
00019         wxTestBase( const char* pszDescription, wxITest* pParent = 0 );
00020         virtual ~wxTestBase();
00021 
00025         virtual void Delete();
00026 
00032         virtual const char* GetDescription();
00033 
00039         virtual TestState GetState();
00040 
00041         virtual void SetState( TestState newState );
00042 
00048         virtual void Run( wxITestRunner* pResult ) {}
00049 
00056         virtual void Run( wxITestRunner* pResult, long unsigned nThreadId ) {}
00057 
00063         virtual bool IsThreadSafe();
00064 
00069         virtual int GetNumSubTests() { return 0; }
00070 
00076         virtual void GetSubTests( wxITest ** pOutTests ) {}
00077 
00078 
00084         virtual const wxITest* GetParent() const;
00085 
00091         virtual wxITest* GetParent() ;
00092 
00098         virtual void SetParent( wxITest* pParent ) ;
00099 
00103         virtual void Setup();
00104 
00108         virtual void TearDown();
00109 
00110 
00111 protected:
00112         typedef long unsigned ThreadId;
00113 
00114         char* m_pszDescription;
00115         TestState m_state;
00116         wxITest* m_pParent;
00117 
00118 };
00119 
00120 WXTEST_END_NAMESPACE
00121 
00122 #endif //__WXTESTBASE_H__
00123 

ThunderCow Software (c) 2001 Marty Saxton, ThunderCow Software. Generated on Sat Nov 17 14:08:31 2001 for wxTest by Doxygen 1.2.11