Rev | Line | |
---|
[216] | 1 | #ifndef TEST_H |
---|
| 2 | #define TEST_H |
---|
| 3 | |
---|
| 4 | #include <string> |
---|
| 5 | |
---|
| 6 | namespace CppTestHarness |
---|
| 7 | { |
---|
| 8 | class TestResults; |
---|
| 9 | |
---|
| 10 | class Test |
---|
| 11 | { |
---|
| 12 | public: |
---|
| 13 | virtual ~Test(); |
---|
| 14 | void Run(TestResults& testResults); |
---|
| 15 | |
---|
| 16 | static Test* GetListHead(); |
---|
| 17 | |
---|
| 18 | protected: |
---|
| 19 | Test(std::string testName = std::string(), |
---|
| 20 | std::string filename = std::string(), |
---|
| 21 | int lineNumber = 0); |
---|
| 22 | |
---|
| 23 | private: |
---|
| 24 | virtual void RunImpl(TestResults& testResults_) = 0; |
---|
| 25 | |
---|
| 26 | std::string const m_testName; |
---|
| 27 | std::string const m_filename; |
---|
| 28 | int const m_lineNumber; |
---|
| 29 | |
---|
| 30 | Test* m_listNext; |
---|
| 31 | |
---|
| 32 | // revoked |
---|
| 33 | Test(Test const&); |
---|
| 34 | Test& operator =(Test const&); |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | #endif |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.