|
/*
The High Performance Template Library is a Licensed as LGPL.
It is intended to provide a base object Testitecture, with
Serialization, thread control, etc.
It is based on a merger of QT, BOOST, STL, and SigSlots.
License information is in the HtlLicense.h file
October 2012
*/
#pragma once
#pragma warning(push)
#pragma warning (disable : 4005 ) /* macro redefinition */
#define HTL_DLLEXPORT
#pragma warning(pop)
#include "..\stdafx.h"
#include ".\TestModuleSigSlot.h"
#include <string>
using namespace std;
using namespace HTL;
namespace HTLTest
{
HtlTestModuleSigSlot::HtlTestModuleSigSlot()
{
m_strTestName = "HtlTestModuleSigSlot";
std::string strFileName = "HtlTestModuleSigSlot.txt";
m_objDebug.Set_strFileName(strFileName);
m_objDebug.Set_blnPrintToFile(true);
m_objDebug.Set_intPrintLevel(2);
//delete file if already exists to clear it
m_objDebug.DeleteDebugFile();
};
HtlTestModuleSigSlot::HtlTestModuleSigSlot(HtlTestNode* ptrParent)
{
};
HtlTestModuleSigSlot::~HtlTestModuleSigSlot()
{
};
//Test Node virtual operations functions
//! Setup the Test Objects
int HtlTestModuleSigSlot::SetupTest(void)
{
//HtlTestFactory * ptrFactory = HTL::GetTestFactoryPtr();
//std::vector<std::string> arrTestNames;
//arrTestNames = ptrFactory->GetAllTestNames();
//for(size_t i = 0; i < arrTestNames.size();i++)
//{
// m_objDebug.DebugPrint(1,"%s\n",arrTestNames.at(i).c_str());
//};
//ADD ALL STRING TESTS
std::string strTest;
//ADD ALL SERIALIZATION TESTS
strTest = "HtlTestSigSlot01";
this->addNode(strTest);
strTest = "HtlTestSigSlot02";
this->addNode(strTest);
strTest = "HtlTestSigSlot03";
this->addNode(strTest);
strTest = "HtlTestSigSlot04";
this->addNode(strTest);
return 0;
};
//! Perform any test pre-processing
int HtlTestModuleSigSlot::PreProcessTest(void)
{
return 0;
};
//! Run the actual test suite for this node. CAN involve other sub test nodes
int HtlTestModuleSigSlot::RunTest(void)
{
HtlTestNode::RunTest();
return 1;
};
int HtlTestModuleSigSlot::PostProcessTest(void)
{
return 0;
};
int HtlTestModuleSigSlot::ClearTest(void)
{
return 0;
};
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.