1#ifndef _UTILS_ASYNC_TRACTION_TEST_HELPER_HXX_
2#define _UTILS_ASYNC_TRACTION_TEST_HELPER_HXX_
4#include "utils/async_if_test_helper.hxx"
9#include "utils/MockTrain.hxx"
19 : trainService_(
ifCan_.get())
24 StrictMock<MockTrain> m1_, m2_;
36 packet,
void(
const vector<uint8_t> &payload, uintptr_t feedback_key));
39 vector<uint8_t> payload;
41 b->data()->payload, b->data()->payload + b->data()->dlc - 1);
42 this->packet(payload, b->data()->feedback_key);
Base class for all QMember types that hold data in an expandable format.
void send(Buffer< dcc::Packet > *b, unsigned prio) OVERRIDE
Entry point to the flow.
std::unique_ptr< IfCan > ifCan_
The interface under test.
Base class for test cases with one virtual node on a CANbus interface.
Test fixture base for traction tests.
Collection of control flows necessary for implementing the Traction Protocol.
#define OVERRIDE
Function attribute for virtual functions declaring that this funciton is overriding a funciton that s...