![]() |
Dataflow Runtime API
3.0.3.0
|
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... | |
Provides a mock implementation of the BSP module.
imt::base::bsp::mock::ModuleMock::ModuleMock | ( | ) |
Constructor.
|
virtual |
Destructor.
uint32_t imt::base::bsp::mock::ModuleMock::m_calibrateInvokeCounter { 0U } |
Number of calls to the calibrate() functino.
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.
DriverMock imt::base::bsp::mock::ModuleMock::m_driver[NUMBER_OF_DRIVERS_MAX] {} |
Mocks of all the drivers.
uint32_t imt::base::bsp::mock::ModuleMock::m_enableInvokeCounter { 0U } |
Number of calls to the onEnable() function.
uint32_t imt::base::bsp::mock::ModuleMock::m_initializeInvokeCounter { 0U } |
Number of calls to the onInitialize() function.
uint32_t imt::base::bsp::mock::ModuleMock::m_startInvokeCounter { 0U } |
Number of calls to the onStart() function.
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.
uint32_t imt::base::bsp::mock::ModuleMock::m_stopInvokeCounter { 0U } |
Number of calls to the onStop() function.
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.