ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
testPiezo.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/piezo.hpp"
#include <rad/dbAdapterRedis.hpp>
#include <rad/msgReplier.hpp>
#include <rad/smAdapter.hpp>
#include <Fcfif.hpp>
#include <mal/Cii.hpp>
#include <mal/Mal.hpp>
#include <mal/utility/LoadMal.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  testPiezo::MyDeviceConfig
 Dummy Test PiezoConfig class used for testing purposes. More...
 
class  testPiezo::MyPiezo
 Dummy Test piezo class used for testing purposes. More...
 
class  testPiezo::TestPiezo
 

Namespaces

 testPiezo
 

Functions

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

Variables

std::string const testPiezo::CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
 
std::string const testPiezo::PIEZO_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testPiezo.yml"
 
std::string const testPiezo::PIEZO_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapPiezo.yml"
 

Detailed Description

Unit tests for the Device class.

Author
mkiekebu