#include "components/reporting/util/rate_limiter_slide_window.h"
#include <cstddef>
#include "base/rand_util.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace reporting {
namespace {
constexpr size_t kTotalSize = …;
constexpr base::TimeDelta kTimeWindow = …;
constexpr size_t kBucketCount = …;
constexpr base::TimeDelta kBucket = …;
class RateLimiterSlideWindowTest : public ::testing::Test { … };
TEST_F(RateLimiterSlideWindowTest, SingularEvent) { … }
TEST_F(RateLimiterSlideWindowTest, SteadyEventsStream) { … }
TEST_F(RateLimiterSlideWindowTest, RandomizedEventsStream) { … }
TEST_F(RateLimiterSlideWindowTest, SparseEventsStream) { … }
}
}