EX-Display
EX-Display
Loading...
Searching...
No Matches
MockCallback Class Reference

Mock class to test callbacks. More...

#include <MockCallback.h>

Inheritance diagram for MockCallback:
[legend]
Collaboration diagram for MockCallback:
[legend]

Public Member Functions

 MOCK_METHOD (void, updateScreen,(uint8_t screenId, uint8_t row, const char *text),())
 
 MOCK_METHOD (void, onInputAction,(InputAction action),())
 
- Public Member Functions inherited from CallbackInterface
virtual void updateScreen (uint8_t screenId, uint8_t row, const char *text)=0
 Method to implement updating a screen.
 
virtual void onInputAction (InputAction action)=0
 Method to implement to respond to an input action.
 
void setLogger (Logger *logger)
 Set the logger instance to use for diagnostic logging.
 
virtual ~CallbackInterface ()=default
 Virtual destructor for the CallBackInterface.
 

Additional Inherited Members

- Protected Attributes inherited from CallbackInterface
Logger_logger = nullptr
 Pointer to the logger interface.
 

Detailed Description

Mock class to test callbacks.

Member Function Documentation

◆ MOCK_METHOD() [1/2]

MockCallback::MOCK_METHOD ( void  ,
onInputAction  ,
(InputAction action)  ,
()   
)

◆ MOCK_METHOD() [2/2]

MockCallback::MOCK_METHOD ( void  ,
updateScreen  ,
(uint8_t screenId, uint8_t row, const char *text)  ,
()   
)

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