Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
AsyncCan1Test Class Reference

Test fixture base class for a second CAN-bus. More...

#include <async_if_test_helper.hxx>

Protected Member Functions

void send_packet1 (const string &gc_packet)
 Send a gridconnect packet to the second CAN port.
 

Static Protected Member Functions

static void SetUpTestCase ()
 Initializes test case with CAN1.
 
static void TearDownTestCase ()
 De-Initializes test case with CAN1.
 

Protected Attributes

StrictMock< MockSendcanBus1_
 Helper object for setting expectations on the packets sent on the bus.
 

Detailed Description

Test fixture base class for a second CAN-bus.

Usage: use multiple inheritance in the test fixture to merge both AsyncCanTest and AsyncCan1Test.

Definition at line 274 of file async_if_test_helper.hxx.

Constructor & Destructor Documentation

◆ AsyncCan1Test()

AsyncCan1Test::AsyncCan1Test ( )
inlineprotected

Definition at line 276 of file async_if_test_helper.hxx.

◆ ~AsyncCan1Test()

AsyncCan1Test::~AsyncCan1Test ( )
inlineprotected

Definition at line 277 of file async_if_test_helper.hxx.

Member Function Documentation

◆ send_packet1()

void AsyncCan1Test::send_packet1 ( const string &  gc_packet)
inlineprotected

Send a gridconnect packet to the second CAN port.

Parameters
gc_packetgridconnect formatted packet string.

Definition at line 302 of file async_if_test_helper.hxx.

◆ SetUpTestCase()

static void AsyncCan1Test::SetUpTestCase ( )
inlinestaticprotected

Initializes test case with CAN1.

Note: if a child test implements SetUpTestCase themself, they must ensure to call this function.

Definition at line 284 of file async_if_test_helper.hxx.

◆ TearDownTestCase()

static void AsyncCan1Test::TearDownTestCase ( )
inlinestaticprotected

De-Initializes test case with CAN1.

Note: if a child test implements TearDownTestCase themself, they must ensure to call this function.

Definition at line 291 of file async_if_test_helper.hxx.

Member Data Documentation

◆ canBus1_

StrictMock<MockSend> AsyncCan1Test::canBus1_
protected

Helper object for setting expectations on the packets sent on the bus.

Definition at line 311 of file async_if_test_helper.hxx.


The documentation for this class was generated from the following file: