fsfw/unittest/core/CatchSetup.cpp

42 lines
949 B
C++
Raw Normal View History

2020-10-29 12:23:27 +01:00
#include "CatchDefinitions.h"
2020-12-03 14:44:11 +01:00
#include "CatchFactory.h"
2020-10-29 12:23:27 +01:00
2020-10-29 12:42:29 +01:00
#include <testcfg/cdatapool/dataPoolInit.h>
2020-10-20 17:11:23 +02:00
#ifdef GCOV
#include <gcov.h>
#endif
2020-10-29 12:23:27 +01:00
#include "../../objectmanager/ObjectManager.h"
#include "../../objectmanager/ObjectManagerIF.h"
#include "../../storagemanager/StorageManagerIF.h"
2020-10-29 12:42:29 +01:00
#include "../../datapool/DataPool.h"
2020-10-29 12:23:27 +01:00
#include "../../serviceinterface/ServiceInterfaceStream.h"
2020-10-20 17:11:23 +02:00
/* Global instantiations normally done in main.cpp */
/* Initialize Data Pool */
2020-10-29 12:42:29 +01:00
//namespace glob {
DataPool dataPool(datapool::dataPoolInit);
//}
2020-10-20 17:11:23 +02:00
namespace sif {
/* Set up output streams */
ServiceInterfaceStream debug("DEBUG");
ServiceInterfaceStream info("INFO");
ServiceInterfaceStream error("ERROR");
ServiceInterfaceStream warning("WARNING");
}
/* Global object manager */
ObjectManagerIF *objectManager;
int customSetup() {
// global setup
objectManager = new ObjectManager(Factory::produce);
objectManager -> initialize();
return 0;
}