#include #include #include #include #include #include #include #include #include "mocks/EventManagerMock.h" #include "mocks/HouseKeepingMock.h" void factory(void* args) { new HouseKeepingMock(); new EventManagerMock(); new HealthTable(objects::HEALTH_TABLE); new InternalErrorReporter(objects::INTERNAL_ERROR_REPORTER); new TimeStamper(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); } } int main(int argc, char* argv[]) { ObjectManager::instance()->setObjectFactoryFunction(factory, nullptr); ObjectManager::instance()->initialize(); // Catch internal function call int result = Catch::Session().run(argc, argv); // global clean-up return result; }