chromium/components/reporting/metrics/metric_report_queue_unittest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/reporting/metrics/metric_report_queue.h"

#include <memory>
#include <string>
#include <string_view>

#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/reporting/client/mock_report_queue.h"
#include "components/reporting/metrics/fakes/fake_reporting_settings.h"
#include "components/reporting/proto/synced/metric_data.pb.h"
#include "components/reporting/proto/synced/record_constants.pb.h"
#include "components/reporting/util/status.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
Eq;
Return;

namespace reporting {
namespace {

constexpr char kRateSettingPath[] =;
constexpr int kRateMs =;
constexpr base::TimeDelta kDefaultRate =;

class MetricReportQueueTest : public ::testing::Test {};

TEST_F(MetricReportQueueTest, ManualUpload) {}

TEST_F(MetricReportQueueTest, ManualUploadWithTimer) {}

TEST_F(MetricReportQueueTest, RateControlledFlush_TimeNotElapsed) {}

TEST_F(MetricReportQueueTest, RateControlledFlush_TimeElapsed) {}

TEST_F(MetricReportQueueTest, GetDestination) {}
}  // namespace
}  // namespace reporting