mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* First pass at Svc + TcpClient implementation * Revert FileUplink changes * Add copy (with allocation/deallocation) to FprimeRouter to simplify buffer management * Update FprimeRouter UTs * Update FprimeDeframer UTs * Update FrameAccumulator UTs * Update ComStub UTs * Update missing Drv and UTs * Update ComInterface to use ComDataWithContext on output * Update Ref/RPI topology * Fix spelling * Fix test typo * Update Udp component and UTs * Rename data ports and standardize "Return" naming pattern * Fix variable name * Adapt UTs * Update Communication Adapter Interface docs * Full SDD updates * Spelling & nits and details * Put formatting back to original * Update Deframer interface to include bufferReturn * Address review comments
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
// ----------------------------------------------------------------------
|
|
// TestMain.cpp
|
|
// ----------------------------------------------------------------------
|
|
|
|
#include "TcpClientTester.hpp"
|
|
|
|
|
|
TEST(Nominal, TcpClientBasicMessaging) {
|
|
Drv::TcpClientTester tester;
|
|
tester.test_basic_messaging();
|
|
}
|
|
|
|
TEST(Nominal, TcpClientBasicReceiveThread) {
|
|
Drv::TcpClientTester tester;
|
|
tester.test_receive_thread();
|
|
}
|
|
|
|
TEST(Nominal, TcpClientBufferDeallocation) {
|
|
Drv::TcpClientTester tester;
|
|
tester.test_buffer_deallocation();
|
|
}
|
|
|
|
TEST(Reconnect, TcpClientMultiMessaging) {
|
|
Drv::TcpClientTester tester;
|
|
tester.test_multiple_messaging();
|
|
}
|
|
|
|
TEST(Reconnect, TcpClientReceiveThreadReconnect) {
|
|
Drv::TcpClientTester tester;
|
|
tester.test_advanced_reconnect();
|
|
}
|
|
|
|
TEST(AutoConnect, AutoConnectOnSendOff) {
|
|
Drv::TcpClientTester tester;
|
|
tester.test_no_automatic_send_connection();
|
|
}
|
|
|
|
TEST(AutoConnect, AutoConnectOnRecvOff) {
|
|
Drv::TcpClientTester tester;
|
|
tester.test_no_automatic_recv_connection();
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|