00001 00002 // Name: TestCaseMultiThreaded.h 00003 // Purpose: Add multi-threaded testing to the TestCase implementation. 00004 // Author: Marty Saxton 00005 // Modified by: 00006 // Created: 10/27/2001 00007 // RCS-ID: $Id: TestCaseMultiThreaded.h,v 1.1 2001/11/09 02:19:54 marty Exp $ 00008 // Copyright: (c) Marty Saxton, Thundercow Software 00009 // Licence: wxWindows license 00011 00012 #ifndef __WXTESTCASE_H__ 00013 #define __WXTESTCASE_H__ 00014 #include <wxTest/TestCase.h> 00015 00016 //WXTEST_BEGIN_NAMESPACE 00017 00022 class wxTestCaseMultiThreaded : public wxTestCase 00023 { 00024 public: 00025 wxTestCaseMultiThreaded( const char* pszDescription, wxITest* pParent = 0 ); 00026 // virtual ~wxTestCaseMultiThreaded(); 00027 00032 virtual int GetNumSubTests(); 00033 00039 virtual void GetSubTests( wxITest ** pOutTests ); 00040 00046 virtual void Run( wxITestRunner* pResult ); 00047 00054 virtual void Run( wxITestRunner* pResult, long unsigned nThreadId ); 00055 00056 protected: 00057 virtual void RunUnitTest( wxITestRunner* pResult, ThreadId nThreadId ) = 0; 00058 00059 }; 00060 00061 WXTEST_END_NAMESPACE 00062 00063 #endif //__WXTESTCASE_H__