fprime/Svc/FrameAccumulator/test/ut/FrameAccumulatorTestMain.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

55 lines
1.5 KiB
C++

// ======================================================================
// \title FrameAccumulatorTestMain.cpp
// \author thomas-bc
// \brief cpp file for FrameAccumulator component test main function
// ======================================================================
#include "FrameAccumulatorTester.hpp"
#include "STest/Random/Random.hpp"
TEST(FrameAccumulator, TestFrameDetected) {
Svc::FrameAccumulatorTester tester;
tester.testFrameDetected();
}
TEST(FrameAccumulator, TestMoreDataNeeded) {
Svc::FrameAccumulatorTester tester;
tester.testMoreDataNeeded();
}
TEST(FrameAccumulator, TestNoFrameDetected) {
Svc::FrameAccumulatorTester tester;
tester.testNoFrameDetected();
}
TEST(FrameAccumulator, TestReceiveZeroSizeBuffer) {
Svc::FrameAccumulatorTester tester;
tester.testReceiveZeroSizeBuffer();
}
TEST(FrameAccumulator, TestAccumulateTwoBuffers) {
Svc::FrameAccumulatorTester tester;
tester.testAccumulateTwoBuffers();
}
TEST(FrameAccumulator, testAccumulateBuffersEmitFrame) {
Svc::FrameAccumulatorTester tester;
tester.testAccumulateBuffersEmitFrame();
}
TEST(FrameAccumulator, testAccumulateBuffersEmitManyFrames) {
Svc::FrameAccumulatorTester tester;
tester.testAccumulateBuffersEmitManyFrames();
}
TEST(FrameAccumulator, testBufferReturnDeallocation) {
Svc::FrameAccumulatorTester tester;
tester.testBufferReturnDeallocation();
}
int main(int argc, char** argv) {
STest::Random::seed();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}