chromium/components/reporting/client/report_queue_configuration_unittest.cc

// Copyright 2020 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/client/report_queue_configuration.h"

#include <cstddef>

#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/test/task_environment.h"
#include "components/reporting/proto/synced/record_constants.pb.h"
#include "components/reporting/util/rate_limiter_interface.h"
#include "components/reporting/util/status.h"
#include "components/reporting/util/status_macros.h"
#include "components/reporting/util/statusor.h"
#include "components/reporting/util/test_support_callbacks.h"
#include "components/reporting/util/wrapped_rate_limiter.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
Eq;
Invoke;
Return;
StrEq;
WithArgs;

namespace reporting {
namespace {

constexpr char kDmToken[] =;

class MockRateLimiter : public RateLimiterInterface {};

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

// Tests to ensure that only valid parameters are used to generate a
// ReportQueueConfiguration.
TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithInvalidDestination) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithInvalidDestinationInvalidCallback) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithValidParams) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithNoDMToken) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithNoDMTokenInvalidDestination) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithNoDMTokenInvalidCallback) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithNoDMTokenInvalidDestinationInvalidCallback) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithDeviceEventType) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithUserEventType) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithEventTypeInvalidDestination) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithEventTypeInvalidCallback) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithEventTypeInvalidReservedSpace) {}

TEST_F(ReportQueueConfigurationTest, UsesProvidedPolicyCheckCallback) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithRateLimiter) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithRateLimiterAfterRemoval) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithReservedSpaceSetting) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithSource) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithUnsetSource) {}

TEST_F(ReportQueueConfigurationTest, ValidateConfigurationWithSourceVersion) {}

TEST_F(ReportQueueConfigurationTest,
       ValidateConfigurationWithSourceVersionAndInvalidSource) {}
}  // namespace
}  // namespace reporting