add Chapter17
This commit is contained in:
52
Chapter17/fsm/libs/etl/test/UnitTest++/DeferredTestResult.h
Normal file
52
Chapter17/fsm/libs/etl/test/UnitTest++/DeferredTestResult.h
Normal file
@@ -0,0 +1,52 @@
|
||||
#ifndef UNITTEST_DEFERREDTESTRESULT_H
|
||||
#define UNITTEST_DEFERREDTESTRESULT_H
|
||||
|
||||
#include "Config.h"
|
||||
#ifndef UNITTEST_NO_DEFERRED_REPORTER
|
||||
|
||||
#include "HelperMacros.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace UnitTest
|
||||
{
|
||||
|
||||
class UNITTEST_LINKAGE DeferredTestFailure
|
||||
{
|
||||
public:
|
||||
DeferredTestFailure();
|
||||
DeferredTestFailure(int lineNumber_, const char* failureStr_);
|
||||
|
||||
int lineNumber;
|
||||
char failureStr[1024];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
UNITTEST_STDVECTOR_LINKAGE(UnitTest::DeferredTestFailure);
|
||||
|
||||
namespace UnitTest
|
||||
{
|
||||
|
||||
class UNITTEST_LINKAGE DeferredTestResult
|
||||
{
|
||||
public:
|
||||
DeferredTestResult();
|
||||
DeferredTestResult(char const* suite, char const* test);
|
||||
~DeferredTestResult();
|
||||
|
||||
std::string suiteName;
|
||||
std::string testName;
|
||||
std::string failureFile;
|
||||
|
||||
typedef std::vector< DeferredTestFailure > FailureVec;
|
||||
FailureVec failures;
|
||||
|
||||
float timeElapsed;
|
||||
bool failed;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user