|
EX-Display
EX-Display
|
Mock class to test callbacks. More...
#include <MockCallback.h>
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. | |
Mock class to test callbacks.
| MockCallback::MOCK_METHOD | ( | void | , |
| onInputAction | , | ||
| (InputAction action) | , | ||
| () | |||
| ) |
| MockCallback::MOCK_METHOD | ( | void | , |
| updateScreen | , | ||
| (uint8_t screenId, uint8_t row, const char *text) | , | ||
| () | |||
| ) |