fprime/Svc/ComAggregator/test/ut/ComAggregatorTestMain.cpp
M Starch 2ee27f82f3
Add Communication Aggregator Component (#4264)
* Add aggregator component

* Add com aggregator to subtopology

* Fix aggregator issues

* Format and SDD

* Add basic UTs

* Fix not-empty check, test

* sp

* Fix author tag

* Bump GDS for aggregation; timeout aggregator

* Bump comQueue event size

* Increase timeout for integration tests

* Update Fw/Buffer/Buffer.hpp

Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com>

* Update Svc/ComAggregator/CMakeLists.txt

Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com>

* Update Svc/ComAggregator/docs/sdd.md

Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com>

* Update Svc/ComAggregator/docs/sdd.md

Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com>

* Remove unused variable 'good' in action doClear

* A usage note about APID.

---------

Co-authored-by: Thomas Boyer-Chammard <49786685+thomas-bc@users.noreply.github.com>
2025-10-13 16:28:57 -07:00

70 lines
1.6 KiB
C++

// ======================================================================
// \title ComAggregatorTestMain.cpp
// \author lestarch
// \brief cpp file for ComAggregator component test main function
// ======================================================================
#include "ComAggregatorTester.hpp"
TEST(Nominal, Initial) {
Svc::ComAggregatorTester tester;
tester.test_initial();
}
TEST(Nominal, Fill) {
Svc::ComAggregatorTester tester;
tester.test_initial();
tester.test_fill();
}
TEST(Nominal, MultiFill) {
Svc::ComAggregatorTester tester;
tester.test_initial();
tester.test_fill_multi();
}
TEST(Nominal, Full) {
Svc::ComAggregatorTester tester;
tester.test_initial();
tester.test_fill_multi();
tester.test_full();
}
TEST(Nominal, Timeout) {
Svc::ComAggregatorTester tester;
tester.test_initial();
tester.test_fill_multi();
tester.test_timeout();
}
TEST(OffNominal, TimeoutEmpty) {
Svc::ComAggregatorTester tester;
tester.test_initial();
tester.test_timeout_zero();
tester.test_fill_multi();
tester.test_full();
}
TEST(Nominal, HoldWhileWaiting) {
Svc::ComAggregatorTester tester;
tester.test_initial();
tester.test_fill_multi();
tester.test_hold_while_waiting();
}
TEST(Nominal, Clear) {
Svc::ComAggregatorTester tester;
tester.test_initial();
tester.test_fill_multi();
tester.test_full();
tester.test_fill_multi();
tester.test_timeout();
tester.test_fill_multi();
tester.test_full();
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}