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

Unit tests for SensorLcsIf 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/sensorConfig.hpp"
#include "fcf/devmgr/devices/sensorLcsIf.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  testSensorLcsIf::TestSensorConfig
 The TestSensorConfig class. More...
 
class  testSensorLcsIf::TestSensorLcsIf
 

Namespaces

 testSensorLcsIf
 

Functions

void testSensorLcsIf::ExpectHelper (MockDbAdapter &mock, MockIConfig &config)
 
void testSensorLcsIf::ExpectHelperNo (MockDbAdapter &mock)
 
 testSensorLcsIf::TEST_F (TestSensorLcsIf, Ctor)
 
void testSensorLcsIf::ExpectReadHelper (std::shared_ptr< MockIComm > comm_if, std::shared_ptr< testSensorLcsIf::TestSensorConfig > &dev_cfg, int state, int substate)
 
 testSensorLcsIf::TEST_F (TestSensorLcsIf, Config)
 
 testSensorLcsIf::TEST_F (TestSensorLcsIf, Connect)
 
 testSensorLcsIf::TEST_F (TestSensorLcsIf, IsReady)
 
 testSensorLcsIf::TEST_F (TestSensorLcsIf, IsOperational)
 
 testSensorLcsIf::TEST_F (TestSensorLcsIf, IsHwFailure)
 
 testSensorLcsIf::TEST_F (TestSensorLcsIf, ReadStatus)
 

Variables

std::string const testSensorLcsIf::CONFIG_CFG
 
std::string const testSensorLcsIf::SENSOR_CFG
 
std::string const testSensorLcsIf::SENSOR_MAP_CFG
 
std::string const testSensorLcsIf::SENSOR_BAD1_CFG
 
std::string const testSensorLcsIf::SENSOR_BAD2_CFG
 
std::string const testSensorLcsIf::SENSOR_BAD3_CFG
 
std::string const testSensorLcsIf::SENSOR_BADMAP1_CFG
 
std::string const testSensorLcsIf::SENSOR_BADMAP2_CFG
 
std::string const testSensorLcsIf::SENSOR_BADMAP3_CFG
 

Detailed Description

Unit tests for SensorLcsIf class.

Author
mkiekebu