#include <TestBase.h>
Inheritance diagram for wxTestBase::
Public Methods | |
wxTestBase (const char *pszDescription, wxITest *pParent=0) | |
virtual | ~wxTestBase () |
virtual void | Delete () |
Destroys and deallocates the test. More... | |
virtual const char * | GetDescription () |
Retreive a human readable description of this test. More... | |
virtual TestState | GetState () |
Retreive the current TestState of this test. More... | |
virtual void | SetState (TestState newState) |
Assign a new state to this test. More... | |
virtual void | Run (wxITestRunner *pResult) |
Begin executing this test. More... | |
virtual void | Run (wxITestRunner *pResult, long unsigned nThreadId) |
Begin executing this test in a multi-threaded enviroment. More... | |
virtual bool | IsThreadSafe () |
Determine if this test is intended to be thread-safe. More... | |
virtual int | GetNumSubTests () |
Retreive the number of sub-tests for this test. More... | |
virtual void | GetSubTests (wxITest **pOutTests) |
Retreive the child-tests of this test. More... | |
virtual const wxITest * | GetParent () const |
Retreive the parent of this test. More... | |
virtual wxITest * | GetParent () |
Retreive the parent of this test. More... | |
virtual void | SetParent (wxITest *pParent) |
Assign a new parent to this test. More... | |
virtual void | Setup () |
Set up this object's state before actually executing any tests. More... | |
virtual void | TearDown () |
Clean up anything that was allocated in Setup. More... | |
Protected Types | |
typedef long unsigned | ThreadId |
Protected Attributes | |
char * | m_pszDescription |
TestState | m_state |
wxITest * | m_pParent |
Definition at line 16 of file TestBase.h.
|
Definition at line 112 of file TestBase.h. |
|
|
|
|
|
Destroys and deallocates the test.
Reimplemented from wxITest. |
|
Retreive a human readable description of this test.
Reimplemented from wxITest. |
|
Retreive the current TestState of this test.
Reimplemented from wxITest. |
|
Assign a new state to this test. This method is usually called by the test-runner after the test has completed.
Reimplemented from wxITest. |
|
Begin executing this test.
Reimplemented from wxITest. Definition at line 48 of file TestBase.h. |
|
Begin executing this test in a multi-threaded enviroment.
Reimplemented from wxITest. Definition at line 56 of file TestBase.h. |
|
Determine if this test is intended to be thread-safe. This useful for test runners that may want to run the test in multiple threads simultaneously to test for resource conflicts and deadlocks. Reimplemented from wxITest. |
|
Retreive the number of sub-tests for this test.
Reimplemented from wxITest. Definition at line 69 of file TestBase.h. |
|
Retreive the child-tests of this test.
Reimplemented from wxITest. Definition at line 76 of file TestBase.h. |
|
Retreive the parent of this test.
Reimplemented from wxITest. |
|
Retreive the parent of this test.
Reimplemented from wxITest. |
|
Assign a new parent to this test.
Reimplemented from wxITest. |
|
Set up this object's state before actually executing any tests.
|
|
Clean up anything that was allocated in Setup.
|
|
Definition at line 114 of file TestBase.h. |
|
Definition at line 115 of file TestBase.h. |
|
Definition at line 116 of file TestBase.h. |