GM6000 Digital Heater Controller Branch: main
SDX-1330
List of all members | Public Member Functions | Public Attributes
Ajax::ScreenMgr::MockScreen Class Reference

This class implements a 'Mock' ScreenApi instances. More...

Detailed Description

This class implements a 'Mock' ScreenApi instances.

The intended usage is for unit tests

#include <MockScreen.h>

Inheritance diagram for Ajax::ScreenMgr::MockScreen:
[legend]
Collaboration diagram for Ajax::ScreenMgr::MockScreen:
[legend]

Public Member Functions

 MockScreen (const char *name)
 Constructor.
 
void enter (Cpl::System::ElapsedTime::Precision_T currentElapsedTime) noexcept
 See Ajax::ScreenMgr::ScreenApi.
 
void exit (Cpl::System::ElapsedTime::Precision_T currentElapsedTime) noexcept
 See Ajax::ScreenMgr::ScreenApi.
 
void sleep (Cpl::System::ElapsedTime::Precision_T currentElapsedTime) noexcept
 See Ajax::ScreenMgr::ScreenApi.
 
void wake (Cpl::System::ElapsedTime::Precision_T currentElapsedTime) noexcept
 See Ajax::ScreenMgr::ScreenApi.
 
void dispatch (AjaxScreenMgrEvent_T event, Cpl::System::ElapsedTime::Precision_T currentElapsedTime) noexcept
 See Ajax::ScreenMgr::ScreenApi.
 
bool tick (Cpl::System::ElapsedTime::Precision_T currentElapsedTime) noexcept
 See Ajax::ScreenMgr::ScreenApi.
 
bool refresh (Cpl::System::ElapsedTime::Precision_T currentElapsedTime) noexcept
 See Ajax::ScreenMgr::ScreenApi.
 
- Public Member Functions inherited from Ajax::ScreenMgr::ScreenApi
virtual ~ScreenApi ()
 Virtual destructor.
 

Public Attributes

const char * m_name
 Screen name.
 
unsigned m_enterCount
 Call counter.
 
unsigned m_exitCount
 Call counter.
 
unsigned m_sleepCount
 Call counter.
 
unsigned m_wakeCount
 Call counter.
 
unsigned m_dispatchCount
 Call counter.
 
unsigned m_tickCount
 Call counter.
 
unsigned m_refreshCount
 Call counter.
 
AjaxScreenMgrEvent_T m_lastEvent
 Last Event.
 
Cpl::System::ElapsedTime::Precision_T m_lastTimeStamp
 Last Timestamp.
 
bool m_refreshResult
 Return value for refresh.
 
bool m_tickResult
 Return value for tick.
 

Constructor & Destructor Documentation

◆ MockScreen()

Ajax::ScreenMgr::MockScreen::MockScreen ( const char *  name)
inline

Constructor.

Member Function Documentation

◆ dispatch()

void Ajax::ScreenMgr::MockScreen::dispatch ( AjaxScreenMgrEvent_T  event,
Cpl::System::ElapsedTime::Precision_T  currentElapsedTime 
)
inlinevirtualnoexcept

◆ enter()

void Ajax::ScreenMgr::MockScreen::enter ( Cpl::System::ElapsedTime::Precision_T  currentElapsedTime)
inlinevirtualnoexcept

◆ exit()

void Ajax::ScreenMgr::MockScreen::exit ( Cpl::System::ElapsedTime::Precision_T  currentElapsedTime)
inlinevirtualnoexcept

◆ refresh()

bool Ajax::ScreenMgr::MockScreen::refresh ( Cpl::System::ElapsedTime::Precision_T  currentElapsedTime)
inlinevirtualnoexcept

◆ sleep()

void Ajax::ScreenMgr::MockScreen::sleep ( Cpl::System::ElapsedTime::Precision_T  currentElapsedTime)
inlinevirtualnoexcept

◆ tick()

bool Ajax::ScreenMgr::MockScreen::tick ( Cpl::System::ElapsedTime::Precision_T  currentElapsedTime)
inlinevirtualnoexcept

◆ wake()

void Ajax::ScreenMgr::MockScreen::wake ( Cpl::System::ElapsedTime::Precision_T  currentElapsedTime)
inlinevirtualnoexcept

Member Data Documentation

◆ m_dispatchCount

unsigned Ajax::ScreenMgr::MockScreen::m_dispatchCount

Call counter.

◆ m_enterCount

unsigned Ajax::ScreenMgr::MockScreen::m_enterCount

Call counter.

◆ m_exitCount

unsigned Ajax::ScreenMgr::MockScreen::m_exitCount

Call counter.

◆ m_lastEvent

AjaxScreenMgrEvent_T Ajax::ScreenMgr::MockScreen::m_lastEvent

Last Event.

◆ m_lastTimeStamp

Cpl::System::ElapsedTime::Precision_T Ajax::ScreenMgr::MockScreen::m_lastTimeStamp

Last Timestamp.

◆ m_name

const char* Ajax::ScreenMgr::MockScreen::m_name

Screen name.

◆ m_refreshCount

unsigned Ajax::ScreenMgr::MockScreen::m_refreshCount

Call counter.

◆ m_refreshResult

bool Ajax::ScreenMgr::MockScreen::m_refreshResult

Return value for refresh.

◆ m_sleepCount

unsigned Ajax::ScreenMgr::MockScreen::m_sleepCount

Call counter.

◆ m_tickCount

unsigned Ajax::ScreenMgr::MockScreen::m_tickCount

Call counter.

◆ m_tickResult

bool Ajax::ScreenMgr::MockScreen::m_tickResult

Return value for tick.

◆ m_wakeCount

unsigned Ajax::ScreenMgr::MockScreen::m_wakeCount

Call counter.


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