| Revision 418, 0.5 kB
            (checked in by vbarta, 16 years ago) | 
        
          | 
#27: added UnitTest?++ to bdm sources, changed test_user_data to use it 
 | 
      
      
    | Line |  | 
|---|
| 1 | #ifndef UNITTEST_TEST_H | 
|---|
| 2 | #define UNITTEST_TEST_H | 
|---|
| 3 |  | 
|---|
| 4 | #include "TestDetails.h" | 
|---|
| 5 |  | 
|---|
| 6 | namespace UnitTest { | 
|---|
| 7 |  | 
|---|
| 8 | class TestResults; | 
|---|
| 9 | class TestList; | 
|---|
| 10 |  | 
|---|
| 11 | class Test | 
|---|
| 12 | { | 
|---|
| 13 | public: | 
|---|
| 14 | explicit Test(char const* testName, char const* suiteName = "DefaultSuite", char const* filename = "", int lineNumber = 0); | 
|---|
| 15 | virtual ~Test(); | 
|---|
| 16 | void Run(); | 
|---|
| 17 |  | 
|---|
| 18 | TestDetails const m_details; | 
|---|
| 19 | Test* next; | 
|---|
| 20 | mutable bool m_timeConstraintExempt; | 
|---|
| 21 |  | 
|---|
| 22 | static TestList& GetTestList(); | 
|---|
| 23 |  | 
|---|
| 24 | virtual void RunImpl() const; | 
|---|
| 25 |  | 
|---|
| 26 | private: | 
|---|
| 27 | Test(Test const&); | 
|---|
| 28 | Test& operator =(Test const&); | 
|---|
| 29 | }; | 
|---|
| 30 |  | 
|---|
| 31 |  | 
|---|
| 32 | } | 
|---|
| 33 |  | 
|---|
| 34 | #endif | 
|---|