aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tests/CppTestHarness/TestRunner.h
blob: e5dedb1ff391c510dd24ec88ed5dc2f0d8615899 (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
#ifndef TEST_RUNNER_H
#define TEST_RUNNER_H

#include "PrintfTestReporter.h"

namespace CppTestHarness
{
class TestLauncher;
class TestReporter;

class TestRunner
{
public:
	TestRunner();
	~TestRunner();

	void SetTestReporter(TestReporter* testReporter);
	void SetTestLauncherListHead(TestLauncher** listHead);

	int RunAllTests();
	int FailureCount() const;

private:
	TestLauncher** m_testLauncherListHead;

	TestReporter* m_testReporter;
	PrintfTestReporter m_defaultTestReporter;
};

}

#endif