#include "quiche/quic/core/congestion_control/windowed_filter.h"
#include "quiche/quic/core/congestion_control/rtt_stats.h"
#include "quiche/quic/core/quic_bandwidth.h"
#include "quiche/quic/core/quic_packets.h"
#include "quiche/quic/platform/api/quic_logging.h"
#include "quiche/quic/platform/api/quic_test.h"
namespace quic {
namespace test {
class WindowedFilterTest : public QuicTest { … };
namespace {
void UpdateWithIrrelevantSamples(
WindowedFilter<uint64_t, MaxFilter<uint64_t>, uint64_t, uint64_t>* filter,
uint64_t max_value, uint64_t time) { … }
}
TEST_F(WindowedFilterTest, UninitializedEstimates) { … }
TEST_F(WindowedFilterTest, MonotonicallyIncreasingMin) { … }
TEST_F(WindowedFilterTest, MonotonicallyDecreasingMax) { … }
TEST_F(WindowedFilterTest, SampleChangesThirdBestMin) { … }
TEST_F(WindowedFilterTest, SampleChangesThirdBestMax) { … }
TEST_F(WindowedFilterTest, SampleChangesSecondBestMin) { … }
TEST_F(WindowedFilterTest, SampleChangesSecondBestMax) { … }
TEST_F(WindowedFilterTest, SampleChangesAllMins) { … }
TEST_F(WindowedFilterTest, SampleChangesAllMaxs) { … }
TEST_F(WindowedFilterTest, ExpireBestMin) { … }
TEST_F(WindowedFilterTest, ExpireBestMax) { … }
TEST_F(WindowedFilterTest, ExpireSecondBestMin) { … }
TEST_F(WindowedFilterTest, ExpireSecondBestMax) { … }
TEST_F(WindowedFilterTest, ExpireAllMins) { … }
TEST_F(WindowedFilterTest, ExpireAllMaxs) { … }
TEST_F(WindowedFilterTest, ExpireCounterBasedMax) { … }
}
}