ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
testShutterLcsIf.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/device.hpp>
#include <ifw/fcf/devmgr/common/deviceConfig.hpp>
#include <ifw/fcf/devmgr/common/deviceLcsIf.hpp>
#include "ifw/fcf/devmgr/devices/shutterConfig.hpp"
#include "ifw/fcf/devmgr/devices/shutterLcsIf.hpp"
#include <rad/dbAdapterRedis.hpp>
#include <rad/msgReplier.hpp>
#include <rad/smAdapter.hpp>
#include <boost/asio.hpp>
#include <gtest/gtest.h>
#include "mock/mockICommAdapter.hpp"
#include "mock/mockHelpers.hpp"

Classes

class  testShutterLcsIf::TestShutterConfig
 The TestShutterConfig class. More...
 
class  testShutterLcsIf::TestShutterLcsIf
 

Namespaces

namespace  testShutterLcsIf
 

Functions

void testShutterLcsIf::ExpectReadHelper (std::shared_ptr< MockICommAdapter > comm_if, std::shared_ptr< testShutterLcsIf::TestShutterConfig > &, int, int)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, Ctor)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, Config)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, Connect)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, Open)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, Close)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, IsReady)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, IsOperational)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, IsOpening)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, IsClosing)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, IsOpen)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, IsClose)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, IsHwFailure)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, ReadStatus)
 
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.
 
ifw::fnd::defs::Notification MakeNotification (const std::string &address, const ifw::fnd::defs::Value &value)
 Build a single-attribute Notification suitable for feeding to a Listener that uses m_ua_status_map. The test caller computes the node-id the same way DeviceLcsIf does (GetNodeId(GetMapValue(...))).
 

Variables

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

Function Documentation

◆ MakeNotification()

ifw::fnd::defs::Notification ifw::fcf::devmgr::test::MakeNotification ( const std::string & address,
const ifw::fnd::defs::Value & value )
inline

Build a single-attribute Notification suitable for feeding to a Listener that uses m_ua_status_map. The test caller computes the node-id the same way DeviceLcsIf does (GetNodeId(GetMapValue(...))).

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