chromium/net/third_party/quiche/src/quiche/quic/core/congestion_control/windowed_filter_test.cc

// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {
// Test helper function: updates the filter with a lot of small values in order
// to ensure that it is not susceptible to noise.
void UpdateWithIrrelevantSamples(
    WindowedFilter<uint64_t, MaxFilter<uint64_t>, uint64_t, uint64_t>* filter,
    uint64_t max_value, uint64_t time) {}
}  // namespace

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 the windowed filter where the time used is an exact counter instead of a
// timestamp.  This is useful if, for example, the time is measured in round
// trips.
TEST_F(WindowedFilterTest, ExpireCounterBasedMax) {}

}  // namespace test
}  // namespace quic