#include "components/reporting/metrics/fakes/fake_sampler.h"
#include <optional>
#include <utility>
#include "base/check.h"
#include "components/reporting/metrics/sampler.h"
#include "components/reporting/proto/synced/metric_data.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace reporting::test {
FakeSampler::FakeSampler() = default;
FakeSampler::~FakeSampler() = default;
void FakeSampler::MaybeCollect(OptionalMetricCallback cb) { … }
void FakeSampler::SetMetricData(std::optional<MetricData> metric_data) { … }
int FakeSampler::GetNumCollectCalls() const { … }
FakeDelayedSampler::FakeDelayedSampler() = default;
FakeDelayedSampler::~FakeDelayedSampler() = default;
void FakeDelayedSampler::MaybeCollect(OptionalMetricCallback cb) { … }
void FakeDelayedSampler::RunCallback() { … }
}