You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
555 B
33 lines
555 B
14 years ago
|
#ifndef TEST_COMMON_HPP
|
||
|
#define TEST_COMMON_HPP
|
||
|
|
||
|
#include <cxxtest/TestSuite.h>
|
||
|
#include <cxxtest/GlobalFixture.h>
|
||
|
|
||
|
#include "Common.hpp"
|
||
|
#include <iostream>
|
||
|
|
||
|
class TestCommon : public CxxTest::GlobalFixture
|
||
|
{
|
||
|
bool setUpWorld()
|
||
|
{
|
||
|
Logger::createInstance();
|
||
|
Logger::init(std::cout);
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
bool tearDownWorld()
|
||
|
{
|
||
|
Logger::destroy();
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
static TestCommon testCommon;
|
||
|
|
||
|
#define TEST_HEADER \
|
||
|
MSG( std::string("\n+++ ").append(__PRETTY_FUNCTION__).append(" +++\n").c_str());
|
||
|
|
||
|
|
||
|
#endif // TEST_COMMON_HPP
|