mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* Correcting shutdown/close usage; refactoring TcpServer * Fixing Tcp * Review and CI fixes * ...and the other half of the fixes
31 lines
774 B
C++
31 lines
774 B
C++
// ----------------------------------------------------------------------
|
|
// TestMain.cpp
|
|
// ----------------------------------------------------------------------
|
|
|
|
#include "TcpServerTester.hpp"
|
|
|
|
TEST(Nominal, TcpServerBasicMessaging) {
|
|
Drv::TcpServerTester tester;
|
|
tester.test_basic_messaging();
|
|
}
|
|
|
|
TEST(Nominal, TcpServerBasicReceiveThread) {
|
|
Drv::TcpServerTester tester;
|
|
tester.test_receive_thread();
|
|
}
|
|
|
|
TEST(Reconnect, TcpServerMultiMessaging) {
|
|
Drv::TcpServerTester tester;
|
|
tester.test_multiple_messaging();
|
|
}
|
|
|
|
TEST(Reconnect, TcpServerReceiveThreadReconnect) {
|
|
Drv::TcpServerTester tester;
|
|
tester.test_advanced_reconnect();
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|