ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
testDeviceLcsIf.cpp File Reference

Unit tests for TestDeviceLcsIf class. Ported to ifw::fnd::defs::ICommAdapter (post-ualib port). More...

#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 <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/mockIDevice.hpp"
#include "mock/mockHelpers.hpp"

Classes

class  testDeviceLcsIf::MyDeviceConfig
 
class  testDeviceLcsIf::MyDeviceLcsIf
 
class  TestDeviceLcsIf
 

Namespaces

namespace  testDeviceLcsIf
 

Functions

 TEST_F (TestDeviceLcsIf, Ctor)
 
 TEST_F (TestDeviceLcsIf, Config)
 
 TEST_F (TestDeviceLcsIf, Connect)
 
 TEST_F (TestDeviceLcsIf, Disconnect)
 
 TEST_F (TestDeviceLcsIf, Init)
 
 TEST_F (TestDeviceLcsIf, Enable)
 
 TEST_F (TestDeviceLcsIf, Disable)
 
 TEST_F (TestDeviceLcsIf, Stop)
 
 TEST_F (TestDeviceLcsIf, Reset)
 
 TEST_F (TestDeviceLcsIf, SkipsBadStatusNotification)
 
 TEST_F (TestDeviceLcsIf, IsNotReady)
 
 TEST_F (TestDeviceLcsIf, IsDisabling)
 
ifw::fnd::defs::Result MakeOk ()
 Build a generic "Ok" Result.
 
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).
 

Detailed Description

Unit tests for TestDeviceLcsIf class. Ported to ifw::fnd::defs::ICommAdapter (post-ualib port).

Function Documentation

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

◆ TEST_F() [1/12]

TEST_F ( TestDeviceLcsIf ,
Config  )

◆ TEST_F() [2/12]

TEST_F ( TestDeviceLcsIf ,
Connect  )

◆ TEST_F() [3/12]

TEST_F ( TestDeviceLcsIf ,
Ctor  )

◆ TEST_F() [4/12]

TEST_F ( TestDeviceLcsIf ,
Disable  )

◆ TEST_F() [5/12]

TEST_F ( TestDeviceLcsIf ,
Disconnect  )

◆ TEST_F() [6/12]

TEST_F ( TestDeviceLcsIf ,
Enable  )

◆ TEST_F() [7/12]

TEST_F ( TestDeviceLcsIf ,
Init  )

◆ TEST_F() [8/12]

TEST_F ( TestDeviceLcsIf ,
IsDisabling  )

◆ TEST_F() [9/12]

TEST_F ( TestDeviceLcsIf ,
IsNotReady  )

◆ TEST_F() [10/12]

TEST_F ( TestDeviceLcsIf ,
Reset  )

◆ TEST_F() [11/12]

TEST_F ( TestDeviceLcsIf ,
SkipsBadStatusNotification  )

◆ TEST_F() [12/12]

TEST_F ( TestDeviceLcsIf ,
Stop  )