#include <common/basesystemenv.h>
#include "LabEngine/base/kaimlogimplementation.h"
namespace
{
#define TEST_ENV_CLASS TestEnv
TEST_ENV {}
TEST
{
KY_UNUSED(env);
LabEngine::KaimLogImplementation customLog;
config.
m_log = &customLog;
config.
m_defaultLogToMode = (Kaim::DefaultLog::LogToMode) (Kaim::DefaultLog::LogToStdout | Kaim::DefaultLog::LogToIde | Kaim::DefaultLog::LogToFile);
LabEngine::KaimFileOpener customFileOpener;
std::string absolutePathToLogFolder = env.OutputDir();
Kaim::DefaultLog::Instance().
SetupLogFile(absolutePathToLogFolder.c_str(), &customFileOpener);
{
return;
}
return;
}
TEST
{
KY_UNUSED(env);
LabEngine::KaimLogImplementation customLog;
config.
m_log = &customLog;
std::string absolutePathToGamewareKey = env.RootDir() + "navigation.gamewarekey";
{
return;
}
}
{
public:
virtual ~TutorialSysAlloc() {}
virtual void*
Alloc(Kaim::UPInt size, Kaim::UPInt align)
{ return Kaim::StraightSysAllocMalloc::Alloc(size, align); }
virtual void Free(
void* ptr, Kaim::UPInt size, Kaim::UPInt align)
{ return Kaim::StraightSysAllocMalloc::Free(ptr, size, align); }
virtual void*
Realloc(
void* oldPtr, Kaim::UPInt oldSize, Kaim::UPInt newSize, Kaim::UPInt align)
{ return Kaim::StraightSysAllocMalloc::Realloc(oldPtr, oldSize, newSize, align); }
};
TEST
{
KY_UNUSED(env);
TutorialSysAlloc tutorialSysAlloc;
LabEngine::KaimLogImplementation customLog;
config.
m_log = &customLog;
std::string absolutePathToGamewareKey = env.RootDir() + "navigation.gamewarekey";
{
return;
}
}
}