ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
testActuator.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/device.hpp>
#include <ifw/fcf/devmgr/common/deviceConfig.hpp>
#include <ifw/fcf/devmgr/common/deviceLcsIf.hpp>
#include "ifw/fcf/devmgr/common/deviceMaker.hpp"
#include "ifw/fcf/devmgr/common/deviceFacade.hpp"
#include "ifw/fcf/devmgr/devices/actuator.hpp"
#include "ifw/fcf/devmgr/devices/actuatorConfig.hpp"
#include "ifw/fcf/devmgr/devices/actuatorLcsIf.hpp"
#include <rad/dbAdapterRedis.hpp>
#include <rad/msgReplier.hpp>
#include <rad/smAdapter.hpp>
#include <ifw/core/utils/base/base.hpp>
#include <boost/asio.hpp>
#include <gtest/gtest.h>
#include "mock/mockICommAdapter.hpp"
#include "mock/mockHelpers.hpp"
#include "mock/mockIDeviceConfig.hpp"

Classes

class  testActuator::MyDeviceConfig
 
class  testActuator::MyActuator
 
class  testActuator::TestActuator
 

Namespaces

namespace  testActuator
 

Functions

void testActuator::ApplyState (std::shared_ptr< ifw::fcf::devmgr::actuator::ActuatorLcsIf > dev_lcs, std::shared_ptr< testActuator::MyDeviceConfig > &dev_cfg, int state, int substate)
 
 testActuator::TEST_F (TestActuator, Connect)
 Test the connection to the LCS.
 
 testActuator::TEST_F (TestActuator, Setup)
 Test the device class Setup and IsSetupActive methods.
 
 testActuator::TEST_F (TestActuator, Status)
 Test the device Status method.
 
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 testActuator::CONFIG_CFG = std::string("config/config.yaml")
 
std::string const testActuator::ACTUATOR_CFG = std::string("config/testActuator.yaml")
 
std::string const testActuator::ACTUATOR_MAP_CFG = std::string("config/testMapActuator.yaml")
 
const short testActuator::STATE_NOT_OPERATIONAL = ifw::fcf::devmgr::common::STATE_NOT_OPERATIONAL
 
const short testActuator::STATE_OPERATIONAL = ifw::fcf::devmgr::common::STATE_OPERATIONAL
 
const short testActuator::SUBSTATE_READY_OFF = ifw::fcf::devmgr::actuator::SUBSTATE_READY_OFF
 
const short testActuator::SUBSTATE_READY_ON = ifw::fcf::devmgr::actuator::SUBSTATE_READY_ON
 
const short testActuator::SUBSTATE_OP_OFF = ifw::fcf::devmgr::actuator::SUBSTATE_OP_OFF
 
const short testActuator::SUBSTATE_OP_ON = ifw::fcf::devmgr::actuator::SUBSTATE_OP_ON
 
const short testActuator::SUBSTATE_OP_SWITCHING_OFF = ifw::fcf::devmgr::actuator::SUBSTATE_OP_SWITCHING_OFF
 
const short testActuator::SUBSTATE_OP_SWITCHING_ON = ifw::fcf::devmgr::actuator::SUBSTATE_OP_SWITCHING_ON
 

Function Documentation

◆ 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).