#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") |
|
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(...))).
|
inline |
Build a generic "Ok" Result.
|
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).