#include "components/reporting/util/wrapped_rate_limiter.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/reporting/util/rate_limiter_interface.h"
#include "components/reporting/util/test_support_callbacks.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Eq;
Return;
UnorderedElementsAre;
namespace reporting {
namespace {
class MockRateLimiter : public RateLimiterInterface { … };
class WrappedRateLimiterTest : public ::testing::Test { … };
TEST_F(WrappedRateLimiterTest, SuccessfulAcquire) { … }
TEST_F(WrappedRateLimiterTest, RejectedAcquire) { … }
TEST_F(WrappedRateLimiterTest, MultipleCalls) { … }
TEST_F(WrappedRateLimiterTest, AcquireAfterDestruction) { … }
}
}