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