File isotp_test_mocks.cpp¶
FileList > tests > unit > isotp_test_mocks.cpp
Go to the source code of this file
Test doubles for ISO-TP user callbacks. More...
#include "isotp_test_support.h"
Public Attributes¶
| Type | Name |
|---|---|
| MockCanState | g_can_state = {0}Global state for CAN send mock. |
| int | g_debug_call_count = 0Global state for counting debug calls. |
| uint32_t | g_now_us = 0Global state for current time in microseconds. |
Public Functions¶
| Type | Name |
|---|---|
| void | reset_mocks () Reset all mock state to defaults. |
Detailed Description¶
Provides mock time and CAN send implementations.
Public Attributes Documentation¶
variable g_can_state¶
Global state for CAN send mock.
MockCanState g_can_state;
variable g_debug_call_count¶
Global state for counting debug calls.
int g_debug_call_count;
variable g_now_us¶
Global state for current time in microseconds.
uint32_t g_now_us;
Public Functions Documentation¶
function reset_mocks¶
Reset all mock state to defaults.
void reset_mocks ()
Reset all mock state to initial values.
The documentation for this class was generated from the following file tests/unit/isotp_test_mocks.cpp