ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
testLamp.cpp File Reference

Unit tests for the Device class. More...

#include <fcf/common/dispatcher.hpp>
#include <fcf/devmgr/common/actionMgr.hpp>
#include <fcf/devmgr/common/config.hpp>
#include <fcf/devmgr/common/dataContext.hpp>
#include <fcf/devmgr/common/deviceFacade.hpp>
#include "fcf/devmgr/common/deviceMaker.hpp"
#include "fcf/devmgr/common/device.hpp"
#include "fcf/devmgr/common/deviceConfig.hpp"
#include "fcf/devmgr/common/configSet.hpp"
#include <fcf/devmgr/common/deviceLcsIf.hpp>
#include "fcf/devmgr/devices/lamp.hpp"
#include <rad/dbAdapterRedis.hpp>
#include <rad/msgReplier.hpp>
#include <rad/smAdapter.hpp>
#include "ctd/system/system.hpp"
#include <boost/asio.hpp>
#include <gtest/gtest.h>
#include "mock/mockIComm.hpp"
#include "mock/mockDbAdapter.hpp"
#include "mock/mockIConfig.hpp"
#include "mock/mockIDeviceConfig.hpp"

Classes

class  testLamp::MyDeviceConfig
 
class  testLamp::MyLamp
 
class  testLamp::TestLamp
 

Namespaces

 testLamp
 

Functions

void testLamp::ExpectHelperNo (MockDbAdapter &mock)
 ExpectHelperNo. More...
 
void testLamp::ExpectRead (std::shared_ptr< MockIComm > comm_if, std::shared_ptr< testLamp::MyDeviceConfig > &dev_cfg, fcf::devmgr::lamp::LampControllerData &data, int repetitions)
 
 testLamp::TEST_F (TestLamp, Ctor)
 Test the device class constructor. More...
 
 testLamp::TEST_F (TestLamp, Connect)
 Test the connection to the LCS. More...
 
 testLamp::TEST_F (TestLamp, Init)
 Test the Initialisation of the device. More...
 
 testLamp::TEST_F (TestLamp, Ignore)
 Test the device ignore functionality. More...
 
 testLamp::TEST_F (TestLamp, Simulate)
 Test the device simulation functionality. More...
 
 testLamp::TEST_F (TestLamp, Setup)
 
 testLamp::TEST_F (TestLamp, Status)
 Test the device Status method. More...
 
 testLamp::TEST_F (TestLamp, EndAcq)
 Test the end of an acquisition. More...
 
 testLamp::TEST_F (TestLamp, Local)
 Test the device local signal. More...
 

Variables

std::string const testLamp::CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
 
std::string const testLamp::LAMP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testLamp.yml"
 
std::string const testLamp::LAMP_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapLamp.yml"
 

Detailed Description

Unit tests for the Device class.

Author
mkiekebu