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

Revision 418, 0.6 kB (checked in by vbarta, 15 years ago)

#27: added UnitTest?++ to bdm sources, changed test_user_data to use it

Line 
1#include "Config.h"
2#include "Test.h"
3#include "TestList.h"
4#include "TestResults.h"
5#include "AssertException.h"
6#include "MemoryOutStream.h"
7#include "ExecuteTest.h"
8
9#ifdef UNITTEST_POSIX
10    #include "Posix/SignalTranslator.h"
11#endif
12
13namespace UnitTest {
14
15TestList& Test::GetTestList()
16{
17    static TestList s_list;
18    return s_list;
19}
20
21Test::Test(char const* testName, char const* suiteName, char const* filename, int lineNumber)
22    : m_details(testName, suiteName, filename, lineNumber)
23    , next(0)
24    , m_timeConstraintExempt(false)
25{
26}
27
28Test::~Test()
29{
30}
31
32void Test::Run()
33{
34        ExecuteTest(*this, m_details);
35}
36
37void Test::RunImpl() const
38{
39}
40
41}
Note: See TracBrowser for help on using the browser.