Definition at line 40 of file if_tcp_test_helper.hxx.
◆ TcpIfTest()
| openlcb::TcpIfTest::TcpIfTest |
( |
| ) |
|
|
inlineprotected |
◆ ~TcpIfTest()
| openlcb::TcpIfTest::~TcpIfTest |
( |
| ) |
|
|
inlineprotected |
◆ capture_all_packets()
| void openlcb::TcpIfTest::capture_all_packets |
( |
| ) |
|
|
inlineprotected |
◆ capture_next_packet()
| void openlcb::TcpIfTest::capture_next_packet |
( |
| ) |
|
|
inlineprotected |
◆ create_new_node()
template<class NodeType = DefaultNode>
| Node * openlcb::TcpIfTest::create_new_node |
( |
std::unique_ptr< NodeType > * |
p, |
|
|
NodeID |
node_id, |
|
|
IfTcp * |
iface = nullptr |
|
) |
| |
|
inlineprotected |
Helper function to create a new virtual node.
- Parameters
-
| p | is the pointer where the node objects' ownership will be transferred. |
| node_id | is the id of the new node. |
| iface | the TCP interface to which to bind the node. nullptr = the default interface of the test. |
- Returns
- the new node pointer.
Definition at line 143 of file if_tcp_test_helper.hxx.
◆ generate_input_message()
template<typename... Args>
| void openlcb::TcpIfTest::generate_input_message |
( |
Args &&... |
args | ) |
|
|
inlineprotected |
Creates a GenMessage, renders it to binary format, and injects it as if it came as an input from the network.
- Parameters
-
| args | same arguments as GenMessage::reset(). Example reset(Defs::MTI_EVENT_REPORT, TEST_NODE_ID, eventid_to_buffer(UINT64_C(0x0102030405060708))); |
Definition at line 87 of file if_tcp_test_helper.hxx.
◆ generate_output_message() [1/2]
template<typename... Args>
| void openlcb::TcpIfTest::generate_output_message |
( |
Args &&... |
args | ) |
|
|
inlineprotected |
Creates a GenMessage and sends it out via the IfTcp.
- Parameters
-
| args | same arguments as GenMessage::reset(). Example reset(Defs::MTI_EVENT_REPORT, TEST_NODE_ID, eventid_to_buffer(UINT64_C(0x0102030405060708))); |
Definition at line 102 of file if_tcp_test_helper.hxx.
◆ generate_output_message() [2/2]
template<typename... Args>
| void openlcb::TcpIfTest::generate_output_message |
( |
IfTcp * |
iface, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineprotected |
Creates a GenMessage and sends it out via the IfTcp.
- Parameters
-
| args | same arguments as GenMessage::reset(). Example reset(Defs::MTI_EVENT_REPORT, TEST_NODE_ID, eventid_to_buffer(UINT64_C(0x0102030405060708))); |
Definition at line 112 of file if_tcp_test_helper.hxx.
◆ get_notifiable()
◆ ignore_all_packets()
| void openlcb::TcpIfTest::ignore_all_packets |
( |
| ) |
|
|
inlineprotected |
◆ wait()
| void openlcb::TcpIfTest::wait |
( |
| ) |
|
|
inlineprotected |
◆ wait_for_notification()
| void openlcb::TcpIfTest::wait_for_notification |
( |
| ) |
|
|
inlineprotected |
◆ allPackets_
| vector<string> openlcb::TcpIfTest::allPackets_ |
|
protected |
◆ bn_
◆ device_
| HubFlow openlcb::TcpIfTest::device_ {&g_service} |
|
protected |
◆ GW_NODE_ID
| constexpr NodeID openlcb::TcpIfTest::GW_NODE_ID = 0x101112131415ULL |
|
staticconstexprprotected |
◆ ifTcp_
| IfTcp openlcb::TcpIfTest::ifTcp_ {GW_NODE_ID, &device_, local_node_count} |
|
protected |
◆ INPUT_GW_NODE_ID
| constexpr NodeID openlcb::TcpIfTest::INPUT_GW_NODE_ID = 0x101112131415ULL |
|
staticconstexprprotected |
◆ lastPacket_
| string openlcb::TcpIfTest::lastPacket_ |
|
protected |
◆ listenPort_
| ::testing::StrictMock<MockHubPort> openlcb::TcpIfTest::listenPort_ |
|
protected |
◆ local_node_count
| int openlcb::TcpIfTest::local_node_count = 9 |
|
staticprotected |
◆ n_
◆ REMOTE_NODE_ID
| constexpr NodeID openlcb::TcpIfTest::REMOTE_NODE_ID = 0x050902030405ULL |
|
staticconstexprprotected |
◆ TEST_NODE_ID
| constexpr NodeID openlcb::TcpIfTest::TEST_NODE_ID = 0x101212231225ULL |
|
staticconstexprprotected |
The documentation for this class was generated from the following file: