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
42 lines
832 B
C++
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();
|
|
}
|