diff options
-rw-r--r-- | tests/common.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/common.c b/tests/common.c index 99b2f7c4..f79b8ad6 100644 --- a/tests/common.c +++ b/tests/common.c @@ -3,6 +3,7 @@ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> +#include <string.h> DiagnosticShims SHIMS; @@ -22,7 +23,7 @@ void debug(const char* format, ...) { va_end(args); } -void mock_send_can(const uint16_t arbitration_id, const uint8_t* data, +bool mock_send_can(const uint16_t arbitration_id, const uint8_t* data, const uint8_t size) { can_frame_was_sent = true; last_can_frame_sent_arb_id = arbitration_id; @@ -30,13 +31,11 @@ void mock_send_can(const uint16_t arbitration_id, const uint8_t* data, if(size > 0) { memcpy(last_can_payload_sent, data, size); } -} - -void mock_set_timer(uint16_t time_ms, void (*callback)) { + return true; } void setup() { - SHIMS = diagnostic_init_shims(debug, mock_send_can, mock_set_timer); + SHIMS = diagnostic_init_shims(debug, mock_send_can, NULL); memset(last_can_payload_sent, 0, sizeof(last_can_payload_sent)); can_frame_was_sent = false; last_response_was_received = false; |