mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Add working unit tests
This commit is contained in:
parent
f609d54a14
commit
995cc7784c
106 changed files with 589 additions and 582 deletions
20
test/emul/can.cpp
Normal file
20
test/emul/can.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "../../Software/src/communication/Transmitter.h"
|
||||
#include "../../Software/src/communication/can/comm_can.h"
|
||||
|
||||
void transmit_can_frame_to_interface(CAN_frame* tx_frame, int interface) {}
|
||||
|
||||
void register_can_receiver(CanReceiver* receiver, CAN_Interface interface, CAN_Speed speed) {}
|
||||
|
||||
CAN_Speed change_can_speed(CAN_Interface interface, CAN_Speed speed) {
|
||||
return CAN_Speed::CAN_SPEED_500KBPS;
|
||||
}
|
||||
|
||||
void stop_can() {}
|
||||
|
||||
void restart_can() {}
|
||||
|
||||
char const* getCANInterfaceName(CAN_Interface) {
|
||||
return "Foobar";
|
||||
}
|
||||
|
||||
void register_transmitter(Transmitter* transmitter) {}
|
Loading…
Add table
Add a link
Reference in a new issue