ifw-fcf  5.0.0
Classes | Namespaces | Functions | Variables
testLamp.cpp File Reference

Unit tests for the Device class. More...

#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/deviceLcsIf.hpp>
#include "fcf/devmgr/devices/lamp.hpp"
#include <rad/dbAdapterRedis.hpp>
#include <rad/msgReplier.hpp>
#include <rad/smAdapter.hpp>
#include <core/utils/base/base.hpp>
#include <boost/asio.hpp>
#include <gtest/gtest.h>
#include "mock/mockIComm.hpp"
#include "mock/mockIDeviceConfig.hpp"

Classes

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

Namespaces

 testLamp
 

Functions

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("config/config.yaml")
 
std::string const testLamp::LAMP_CFG = std::string("config/testLamp.yaml")
 
std::string const testLamp::LAMP_MAP_CFG = std::string("config/testMapLamp.yaml")
 

Detailed Description

Unit tests for the Device class.

Author
mkiekebu