00001 00002 // Name: wxMacInitializeTerminate.cpp 00003 // Purpose: 00004 // Author: Marty Saxton 00005 // Modified by: 00006 // Created: 10/27/2001 00007 // RCS-ID: $Id: TestSuite.h,v 1.3 2001/11/09 02:18:32 marty Exp $ 00008 // Copyright: (c) Marty Saxton, Thundercow Software 00009 // Licence: wxWindows license 00011 00012 #ifndef __WXTESTSUITE_H__ 00013 #define __WXTESTSUITE_H__ 00014 00015 #include <wxTest/ITest.h> 00016 00021 class wxTestSuite : public wxITest 00022 { 00023 public: 00024 wxTestSuite( const char* pszDescription ); 00025 00029 virtual void Delete(); 00030 00031 00032 virtual ~wxTestSuite(); 00033 00038 virtual const char* GetDescription(); 00039 00044 virtual TestState GetState(); 00045 00046 virtual void SetState( TestState newState ); 00047 00052 virtual void Run( wxITestRunner* pResult ); 00053 00060 virtual void Run( wxITestRunner* pResult, long unsigned nThreadId ); 00061 00067 virtual bool IsThreadSafe(); 00068 00073 virtual int GetNumSubTests(); 00074 00079 virtual void GetSubTests( wxITest ** pOutTests ); 00080 00085 virtual const wxITest* GetParent() const; 00086 00091 virtual wxITest* GetParent(); 00092 00098 virtual void SetParent( wxITest* pParent ); 00099 00104 virtual void AddTest( wxITest* pTest ); 00105 00106 private: 00107 char* m_pszDescription; 00108 TestState m_state; 00109 wxITest** m_tests; 00110 int m_nTestCount; 00111 int m_nTestCapacity; 00112 wxITest* m_pParent; 00113 }; 00114 #endif //__WXTESTSUITE_H__