|
ifw
0.0.1-dev
|
Unit tests for LampLcsIf class. More...
#include <fcf/common/dispatcher.hpp>#include <devmgr/common/actionMgr.hpp>#include <devmgr/common/config.hpp>#include <devmgr/common/dataContext.hpp>#include <devmgr/common/deviceFacade.hpp>#include <devmgr/common/device.hpp>#include <devmgr/common/deviceConfig.hpp>#include <devmgr/common/deviceLcsIf.hpp>#include "devmgr/devices/lampConfig.hpp"#include "devmgr/devices/lampLcsIf.hpp"#include <rad/DbAdapterRedis.hpp>#include <rad/Dispatcher.hpp>#include <rad/MsgReplier.hpp>#include <rad/SMAdapter.hpp>#include <boost/asio.hpp>#include <gtest/gtest.h>#include <google/protobuf/stubs/common.h>#include "mock/mockIComm.hpp"#include "mock/mockDbAdapter.hpp"#include "mock/mockIConfig.hpp"Classes | |
| class | testLampLcsIf::TestLampConfig |
| The TestLampConfig class. More... | |
| class | testLampLcsIf::TestLampLcsIf |
Namespaces | |
| testLampLcsIf | |
Functions | |
| void | testLampLcsIf::expect_helper (MockDbAdapter &mock, MockIConfig &config) |
| void | testLampLcsIf::expect_helper_no (MockDbAdapter &mock) |
| void | testLampLcsIf::expect_read_helper (std::shared_ptr< MockIComm > comm_if, std::shared_ptr< testLampLcsIf::TestLampConfig > &dev_cfg, short state, short substate) |
| testLampLcsIf::TEST_F (TestLampLcsIf, Ctor) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, Config) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, Connect) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, SwitchOn) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, SwitchOff) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, IsReady) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, IsOperational) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, IsTurningOn) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, IsTurningOff) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, IsOn) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, IsOff) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, IsHwFailure) | |
| testLampLcsIf::TEST_F (TestLampLcsIf, ReadStatus) | |
Variables | |
| std::string const | testLampLcsIf::CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml" |
| std::string const | testLampLcsIf::LAMP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testLamp.yml" |
| std::string const | testLampLcsIf::LAMP_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapLamp.yml" |
| std::string const | testLampLcsIf::LAMP_BAD1_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testBadLamp1.yml" |
| std::string const | testLampLcsIf::LAMP_BAD2_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testBadLamp2.yml" |
| std::string const | testLampLcsIf::LAMP_BAD3_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testBadLamp3.yml" |
| std::string const | testLampLcsIf::LAMP_BADMAP1_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testBadMapLamp1.yml" |
| std::string const | testLampLcsIf::LAMP_BADMAP2_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testBadMapLamp2.yml" |
| std::string const | testLampLcsIf::LAMP_BADMAP3_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testBadMapLamp3.yml" |
| const short | testLampLcsIf::STATE_STANDBY = devmgr::common::STATE_STANDBY |
| const short | testLampLcsIf::STATE_OPERATIONAL = devmgr::common::STATE_OPERATIONAL |
| const short | testLampLcsIf::SUBSTATE_NOTREADY = devmgr::lamp::SUBSTATE_NOTREADY |
| const short | testLampLcsIf::SUBSTATE_INITIALISING = devmgr::lamp::SUBSTATE_INITIALISING |
| const short | testLampLcsIf::SUBSTATE_READY_OFF = devmgr::lamp::SUBSTATE_READY_OFF |
| const short | testLampLcsIf::SUBSTATE_READY_ON = devmgr::lamp::SUBSTATE_READY_ON |
| const short | testLampLcsIf::SUBSTATE_STANDBY_FAILURE = devmgr::lamp::SUBSTATE_STANDBY_FAILURE |
| const short | testLampLcsIf::SUBSTATE_OP_DISABLING = devmgr::lamp::SUBSTATE_OP_DISABLING |
| const short | testLampLcsIf::SUBSTATE_OP_OFF = devmgr::lamp::SUBSTATE_OP_OFF |
| const short | testLampLcsIf::SUBSTATE_OP_SWITCHING_OFF = devmgr::lamp::SUBSTATE_OP_SWITCHING_OFF |
| const short | testLampLcsIf::SUBSTATE_OP_COOLING = devmgr::lamp::SUBSTATE_OP_COOLING |
| const short | testLampLcsIf::SUBSTATE_OP_ON = devmgr::lamp::SUBSTATE_OP_ON |
| const short | testLampLcsIf::SUBSTATE_OP_SWITCHING_ON = devmgr::lamp::SUBSTATE_OP_SWITCHING_ON |
| const short | testLampLcsIf::SUBSTATE_OP_WARMING = devmgr::lamp::SUBSTATE_OP_WARMING |
| const short | testLampLcsIf::SUBSTATE_OP_FAILURE = devmgr::lamp::SUBSTATE_OP_FAILURE |
Unit tests for LampLcsIf class.
1.8.5