ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
testShutterLcsIf.cpp File Reference

Unit tests for ShutterLcsIf class. More...

#include <fcf/common/dispatcher.hpp>
#include <fcf/devmgr/common/actionMgr.hpp>
#include <fcf/devmgr/common/config.hpp>
#include <fcf/devmgr/common/dataContext.hpp>
#include <fcf/devmgr/common/deviceFacade.hpp>
#include <fcf/devmgr/common/device.hpp>
#include <fcf/devmgr/common/deviceConfig.hpp>
#include <fcf/devmgr/common/deviceLcsIf.hpp>
#include "fcf/devmgr/devices/shutterConfig.hpp"
#include "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/mockIComm.hpp"
#include "mock/mockIConfig.hpp"
#include "mock/mockDbAdapter.hpp"

Classes

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

Namespaces

 testShutterLcsIf
 

Functions

void testShutterLcsIf::ExpectHelper (MockDbAdapter &mock, MockIConfig &config)
 
void testShutterLcsIf::ExpectHelperNo (MockDbAdapter &mock)
 
 testShutterLcsIf::TEST_F (TestShutterLcsIf, Ctor)
 
void testShutterLcsIf::ExpectReadHelper (std::shared_ptr< MockIComm > comm_if, std::shared_ptr< testShutterLcsIf::TestShutterConfig > &dev_cfg, int state, int substate)
 
 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)
 

Variables

std::string const testShutterLcsIf::CONFIG_CFG
 
std::string const testShutterLcsIf::SHUTTER_CFG
 
std::string const testShutterLcsIf::SHUTTER_MAP_CFG
 
std::string const testShutterLcsIf::SHUTTER_BAD1_CFG
 
std::string const testShutterLcsIf::SHUTTER_BAD2_CFG
 
std::string const testShutterLcsIf::SHUTTER_BAD3_CFG
 
std::string const testShutterLcsIf::SHUTTER_BADMAP1_CFG
 
std::string const testShutterLcsIf::SHUTTER_BADMAP2_CFG
 
std::string const testShutterLcsIf::SHUTTER_BADMAP3_CFG
 

Detailed Description

Unit tests for ShutterLcsIf class.

Author
mkiekebu