Class to test the integration between the CanBusManager and the MCP2515 controller. More...
Protected Member Functions | |
void | SetUp () override |
void | TearDown () override |
void | SetUp () override |
Set up the test environment. | |
void | TearDown () override |
Tear down the test environment. | |
Static Protected Member Functions | |
static void | SetUpTestSuite () |
static void | TearDownTestSuite () |
Protected Attributes | |
CanBusManager * | canBusManager |
IMCP2515Controller * | controller |
IMCP2515Controller * | mockMcpController |
Mocked MCP2515 controller. | |
CanBusManager * | manager |
CanBusManager object. | |
Static Protected Attributes | |
static QCoreApplication * | app = nullptr |
Initialize static member. | |
Class to test the integration between the CanBusManager and the MCP2515 controller.
Test fixture for testing the CanBusManager class.
This class sets up the necessary mock objects and provides setup and teardown methods for each test.
Definition at line 27 of file test_int_CanBusManager.cpp.
|
inlineoverrideprotected |
Definition at line 43 of file test_int_CanBusManager.cpp.
|
inlineoverrideprotected |
Set up the test environment.
This method is called before each test to set up the necessary objects.
Definition at line 41 of file test_CanBusManager.cpp.
|
inlinestaticprotected |
Definition at line 34 of file test_int_CanBusManager.cpp.
|
inlineoverrideprotected |
Definition at line 52 of file test_int_CanBusManager.cpp.
|
inlineoverrideprotected |
Tear down the test environment.
This method is called after each test to clean up the objects created in SetUp().
Definition at line 52 of file test_CanBusManager.cpp.
|
inlinestaticprotected |
Definition at line 41 of file test_int_CanBusManager.cpp.
|
staticprotected |
Initialize static member.
Definition at line 30 of file test_int_CanBusManager.cpp.
|
protected |
Definition at line 31 of file test_int_CanBusManager.cpp.
|
protected |
Definition at line 32 of file test_int_CanBusManager.cpp.
|
protected |
CanBusManager object.
Definition at line 64 of file test_CanBusManager.cpp.
|
protected |
Mocked MCP2515 controller.
Definition at line 62 of file test_CanBusManager.cpp.