13#include <catch2/catch.hpp>
18 constexpr auto numFramesInHistory = 10;
19 constexpr int framesPerSecond = numFramesInHistory / SUT::maxTimeSeconds;
20 SUT sut { framesPerSecond };
22 REQUIRE(segments.empty());
24 constexpr auto sampsPerPacket = 1;
27 sut.Push({ { 1, sampsPerPacket }, { 2, sampsPerPacket } });
28 REQUIRE(!segments.empty());
30 const auto& history = segments.front();
31 REQUIRE(history.size() == 2);
36 { { 1, sampsPerPacket }, { 2, sampsPerPacket }, { 3, sampsPerPacket } });
37 REQUIRE(history.size() == 3);
40 sut.Push({ { 4, sampsPerPacket }, { 5, sampsPerPacket } });
41 REQUIRE(history.size() == 5);
TEST_CASE("DynamicRangeProcessorHistory")
const std::vector< Segment > & GetSegments() const