#include "testEnvironment.h" #include #include #include #include #include #include #include #include #ifdef LINUX ServiceInterfaceStream sif::debug("DEBUG "); ServiceInterfaceStream sif::info("INFO "); ServiceInterfaceStream sif::warning("WARNING"); ServiceInterfaceStream sif::error("ERROR ", false, true, true); #else ServiceInterfaceStream sif::debug("DEBUG", true); ServiceInterfaceStream sif::info("INFO", true); ServiceInterfaceStream sif::warning("WARNING", true); ServiceInterfaceStream sif::error("ERROR", true, false, true); #endif namespace testEnvironment { void factory(void* args) { new HouseKeepingMock(); eventManager = new EventManagerMock(); new HealthTable(objects::HEALTH_TABLE); new InternalErrorReporter(objects::INTERNAL_ERROR_REPORTER, 5, false, 60.0); new CdsShortTimeStamper(objects::TIME_STAMPER); { PoolManager::LocalPoolConfig poolCfg = {{300, 16}, {200, 32}, {150, 64}, {150, 128}, {100, 256}, {50, 512}, {50, 1024}, {10, 2048}}; new PoolManager(objects::IPC_STORE, poolCfg); } } void setup() { ObjectManager::instance()->setObjectFactoryFunction(factory, nullptr); } void initialize() { ObjectManager::instance()->initialize(); } } // namespace testEnvironment EventManagerMock* testEnvironment::eventManager = nullptr; #include #include namespace messagetypes { enum MESSAGE_TYPE { MISSION_MESSAGE_TYPE_START = FW_MESSAGES_COUNT, }; void clearMissionMessage(CommandMessage* message); } // namespace messagetypes void messagetypes::clearMissionMessage(CommandMessage* message) {}