fprime/Svc/ComStub/test/ut/ComStubTestMain.cpp
Thomas Boyer-Chammard c3b2e04880
Use data return pattern on Uplink and standardize port names (#3546)
* 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
2025-05-08 10:54:54 -07:00

42 lines
832 B
C++

// ----------------------------------------------------------------------
// TestMain.cpp
// ----------------------------------------------------------------------
#include "ComStubTester.hpp"
TEST(Nominal, Initial) {
Svc::ComStubTester tester;
tester.test_initial();
}
TEST(Nominal, BasicIo) {
Svc::ComStubTester tester;
tester.test_basic();
}
TEST(Nominal, Fail) {
Svc::ComStubTester tester;
tester.test_fail();
}
TEST(Nominal, BufferReturn) {
Svc::ComStubTester tester;
tester.test_buffer_return();
}
TEST(OffNominal, Retry) {
Svc::ComStubTester tester;
tester.test_retry();
}
TEST(OffNominal, RetryReset) {
Svc::ComStubTester tester;
tester.test_retry_reset();
}
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}