fsfw/unittest/core/CatchSetup.cpp

43 lines
961 B
C++
Raw Normal View History

2020-10-29 12:23:27 +01:00
#include "CatchDefinitions.h"
2020-10-29 12:42:29 +01:00
#include <testcfg/cdatapool/dataPoolInit.h>
#include <testcfg/objects/Factory.h>
2020-10-29 12:23:27 +01:00
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;
}