root/library/tests/unittest-cpp/Test.h @ 418

Revision 418, 0.5 kB (checked in by vbarta, 15 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
6namespace UnitTest {
7
8class TestResults;
9class TestList;
10
11class Test
12{
13public:
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
26private:
27        Test(Test const&);
28    Test& operator =(Test const&);
29};
30
31
32}
33
34#endif
Note: See TracBrowser for help on using the browser.