#include "components/reporting/metrics/fakes/fake_metric_report_queue.h"
#include <memory>
#include <string>
#include <vector>
#include "base/task/sequenced_task_runner.h"
#include "base/time/time.h"
#include "components/reporting/client/report_queue.h"
#include "components/reporting/metrics/reporting_settings.h"
#include "components/reporting/proto/synced/metric_data.pb.h"
#include "components/reporting/proto/synced/record_constants.pb.h"
namespace reporting::test {
FakeMetricReportQueue::FakeMetricReportQueue(Priority priority)
: … { … }
FakeMetricReportQueue::FakeMetricReportQueue(
Priority priority,
ReportingSettings* reporting_settings,
const std::string& rate_setting_path,
base::TimeDelta default_rate,
int rate_unit_to_ms)
: … { … }
void FakeMetricReportQueue::Enqueue(MetricData metric_data,
ReportQueue::EnqueueCallback callback) { … }
FakeMetricReportQueue::~FakeMetricReportQueue() = default;
void FakeMetricReportQueue::Flush() { … }
MetricData FakeMetricReportQueue::GetMetricDataReported() { … }
int FakeMetricReportQueue::GetNumFlush() const { … }
bool FakeMetricReportQueue::IsEmpty() const { … }
Destination FakeMetricReportQueue::GetDestination() const { … }
}