ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
testShutter.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/shutter.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 "ctd/system/system.hpp"
#include <gtest/gtest.h>
#include "mock/mockIComm.hpp"
#include "mock/mockDbAdapter.hpp"
#include "mock/mockIConfig.hpp"
#include "mock/mockIDeviceConfig.hpp"

Classes

class  testShutter::MyDeviceConfig
 Dummy Test ShutterConfig class used for testing purposes. More...
 
class  testShutter::MyShutter
 Dummy Test shutter class used for testing purposes. More...
 
class  testShutter::TestShutter
 

Namespaces

 testShutter
 

Functions

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

Variables

std::string const testShutter::CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
 
std::string const testShutter::SHUTTER_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testShutter.yml"
 
std::string const testShutter::SHUTTER_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapShutter.yml"
 

Detailed Description

Unit tests for the Device class.

Author
mkiekebu