ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
testShutter.cpp File Reference
#include <ifw/fcf/devmgr/common/actionMgr.hpp>
#include <ifw/fcf/devmgr/common/config.hpp>
#include <ifw/fcf/devmgr/common/dataContext.hpp>
#include <ifw/fcf/devmgr/common/deviceFacade.hpp>
#include "ifw/fcf/devmgr/common/deviceMaker.hpp"
#include "ifw/fcf/devmgr/common/device.hpp"
#include "ifw/fcf/devmgr/common/deviceConfig.hpp"
#include <ifw/fcf/devmgr/common/deviceLcsIf.hpp>
#include "ifw/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 <ifw/core/utils/base/base.hpp>
#include <gtest/gtest.h>
#include "mock/mockICommAdapter.hpp"
#include "mock/mockHelpers.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

namespace  testShutter
 

Functions

void testShutter::ExpectRead (std::shared_ptr< MockICommAdapter > comm_if, std::shared_ptr< testShutter::MyDeviceConfig > &, ifw::fcf::devmgr::shutter::ShutterControllerData &, int repetitions)
 
 testShutter::TEST_F (TestShutter, Ctor)
 Test the Shutter device class constructor.
 
 testShutter::TEST_F (TestShutter, Connect)
 Test the connection to the LCS.
 
 testShutter::TEST_F (TestShutter, Init)
 Test the Initialisation of the device.
 
 testShutter::TEST_F (TestShutter, Ignore)
 Test the device ignore functionality.
 
 testShutter::TEST_F (TestShutter, Simulate)
 Test the device simulation functionality.
 
 testShutter::TEST_F (TestShutter, Setup)
 Test Shutter Setup method.
 
 testShutter::TEST_F (TestShutter, Status)
 Test the device Status method.
 
 testShutter::TEST_F (TestShutter, EndAcq)
 Test the end of an acquisition.
 
 testShutter::TEST_F (TestShutter, Local)
 Test the device local signal: Init should fail with the LOCAL RPC error message when the controller refuses RPC calls because it is in local mode.
 
int main (int argc, char **argv)
 
ifw::fnd::defs::CallResult MakeRpcReply (short code, ifw::fnd::defs::Status batch_status=ifw::fnd::defs::Status::Ok)
 Build a CallResult that carries a single short reply code, matching the convention every FCF RPC uses (RPC reply in output_arguments[0].data.value as short).
 
ifw::fnd::defs::Result MakeOk ()
 Build a generic "Ok" Result.
 

Variables

std::string const testShutter::CONFIG_CFG = std::string("config/config.yaml")
 
std::string const testShutter::SHUTTER_CFG = std::string("config/testShutter.yaml")
 
std::string const testShutter::SHUTTER_MAP_CFG = std::string("config/testMapShutter.yaml")
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

◆ MakeOk()

ifw::fnd::defs::Result ifw::fcf::devmgr::test::MakeOk ( )
inline

Build a generic "Ok" Result.

◆ MakeRpcReply()

ifw::fnd::defs::CallResult ifw::fcf::devmgr::test::MakeRpcReply ( short code,
ifw::fnd::defs::Status batch_status = ifw::fnd::defs::Status::Ok )
inline

Build a CallResult that carries a single short reply code, matching the convention every FCF RPC uses (RPC reply in output_arguments[0].data.value as short).