Dataflow Runtime API  3.0.3.0
Public Member Functions | Public Attributes | List of all members
imt::base::bsp::mock::ModuleMock Class Reference

Provides a mock implementation of the BSP module. More...

#include <Imt.Base.BSP.Mock/ModuleMock.h>

Public Member Functions

 ModuleMock ()
 Constructor. More...
 
virtual ~ModuleMock ()
 Destructor. More...
 

Public Attributes

DriverMock m_driver [NUMBER_OF_DRIVERS_MAX] {}
 Mocks of all the drivers. More...
 
uint32_t m_calibrateInvokeCounter { 0U }
 Number of calls to the calibrate() functino. More...
 
imt::base::bsp::type::ErrorCode::Id m_calibrateReturnValue { imt::base::bsp::type::ErrorCode::OK }
 Return value of the calibrate() function. More...
 
uint32_t m_enableInvokeCounter { 0U }
 Number of calls to the onEnable() function. More...
 
uint32_t m_initializeInvokeCounter { 0U }
 Number of calls to the onInitialize() function. More...
 
uint32_t m_startInvokeCounter { 0U }
 Number of calls to the onStart() function. More...
 
imt::base::bsp::type::ErrorCode::Id m_startReturnValue { imt::base::bsp::type::ErrorCode::OK }
 Return value of the onStart() function. More...
 
uint32_t m_stopInvokeCounter { 0U }
 Number of calls to the onStop() function. More...
 
imt::base::bsp::type::ErrorCode::Id m_stopReturnValue { imt::base::bsp::type::ErrorCode::OK }
 Return value of the onStop() function. More...
 

Detailed Description

Provides a mock implementation of the BSP module.

Constructor & Destructor Documentation

◆ ModuleMock()

imt::base::bsp::mock::ModuleMock::ModuleMock ( )

Constructor.

◆ ~ModuleMock()

virtual imt::base::bsp::mock::ModuleMock::~ModuleMock ( )
virtual

Destructor.

Member Data Documentation

◆ m_calibrateInvokeCounter

uint32_t imt::base::bsp::mock::ModuleMock::m_calibrateInvokeCounter { 0U }

Number of calls to the calibrate() functino.

◆ m_calibrateReturnValue

imt::base::bsp::type::ErrorCode::Id imt::base::bsp::mock::ModuleMock::m_calibrateReturnValue { imt::base::bsp::type::ErrorCode::OK }

Return value of the calibrate() function.

◆ m_driver

DriverMock imt::base::bsp::mock::ModuleMock::m_driver[NUMBER_OF_DRIVERS_MAX] {}

Mocks of all the drivers.

◆ m_enableInvokeCounter

uint32_t imt::base::bsp::mock::ModuleMock::m_enableInvokeCounter { 0U }

Number of calls to the onEnable() function.

◆ m_initializeInvokeCounter

uint32_t imt::base::bsp::mock::ModuleMock::m_initializeInvokeCounter { 0U }

Number of calls to the onInitialize() function.

◆ m_startInvokeCounter

uint32_t imt::base::bsp::mock::ModuleMock::m_startInvokeCounter { 0U }

Number of calls to the onStart() function.

◆ m_startReturnValue

imt::base::bsp::type::ErrorCode::Id imt::base::bsp::mock::ModuleMock::m_startReturnValue { imt::base::bsp::type::ErrorCode::OK }

Return value of the onStart() function.

◆ m_stopInvokeCounter

uint32_t imt::base::bsp::mock::ModuleMock::m_stopInvokeCounter { 0U }

Number of calls to the onStop() function.

◆ m_stopReturnValue

imt::base::bsp::type::ErrorCode::Id imt::base::bsp::mock::ModuleMock::m_stopReturnValue { imt::base::bsp::type::ErrorCode::OK }

Return value of the onStop() function.


The documentation for this class was generated from the following file: