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
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
// ======================================================================
|
|
// \title FprimeDeframerTestMain.cpp
|
|
// \author thomas-bc
|
|
// \brief cpp file for FprimeDeframer component test main function
|
|
// ======================================================================
|
|
|
|
#include "FprimeDeframerTester.hpp"
|
|
#include "STest/Random/Random.hpp"
|
|
|
|
TEST(FprimeDeframer, NominalFrame) {
|
|
Svc::FprimeDeframerTester tester;
|
|
tester.testNominalFrame();
|
|
}
|
|
|
|
TEST(FprimeDeframer, TruncatedFrame) {
|
|
Svc::FprimeDeframerTester tester;
|
|
tester.testTruncatedFrame();
|
|
}
|
|
|
|
TEST(FprimeDeframer, ZeroSizeFrame) {
|
|
Svc::FprimeDeframerTester tester;
|
|
tester.testZeroSizeFrame();
|
|
}
|
|
|
|
TEST(FprimeDeframer, testIncorrectLengthToken) {
|
|
Svc::FprimeDeframerTester tester;
|
|
tester.testIncorrectLengthToken();
|
|
}
|
|
|
|
TEST(FprimeDeframer, testIncorrectStartWord) {
|
|
Svc::FprimeDeframerTester tester;
|
|
tester.testIncorrectStartWord();
|
|
}
|
|
|
|
TEST(FprimeDeframer, testIncorrectCrc) {
|
|
Svc::FprimeDeframerTester tester;
|
|
tester.testIncorrectCrc();
|
|
}
|
|
|
|
TEST(FprimeDeframer, testDataReturn) {
|
|
Svc::FprimeDeframerTester tester;
|
|
tester.testDataReturn();
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
STest::Random::seed();
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|