chromium/components/reporting/client/report_queue_factory_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/client/report_queue_factory.h"

#include <memory>
#include <string>
#include <utility>

#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/test/task_environment.h"
#include "components/reporting/client/mock_report_queue.h"
#include "components/reporting/client/mock_report_queue_provider.h"
#include "components/reporting/client/report_queue.h"
#include "components/reporting/client/report_queue_provider_test_helper.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"

_;
HasSubstr;
IsNull;
NiceMock;
NotNull;
Return;

namespace reporting {

class MockRateLimiter : public RateLimiterInterface {};

class MockReportQueueConsumer {};

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

TEST_F(ReportQueueFactoryTest, CreateAndGetQueue) {}

TEST_F(ReportQueueFactoryTest, CreateQueueWithInvalidConfig) {}

TEST_F(ReportQueueFactoryTest, CreateAndGetQueueWithRateLimiter) {}

TEST_F(ReportQueueFactoryTest, CreateAndGetQueueWithValidReservedSpace) {}

TEST_F(ReportQueueFactoryTest, CreateQueueWithInvalidReservedSpace) {}

TEST_F(ReportQueueFactoryTest, CreateAndGetQueueWithSource) {}

TEST_F(ReportQueueFactoryTest, CreateAndGetQueueWithSourceVersion) {}

TEST_F(ReportQueueFactoryTest, CreateQueueWithSourceVersionAndInvalidSource) {}

TEST_F(ReportQueueFactoryTest, CreateSpeculativeQueue) {}

TEST_F(ReportQueueFactoryTest, CreateSpeculativeQueueWithValidReservedSpace) {}

TEST_F(ReportQueueFactoryTest, CreateSpeculativeQueueWithInvalidReservedSpace) {}

TEST_F(ReportQueueFactoryTest, CreateSpeculativeQueueWithInvalidConfig) {}

TEST_F(ReportQueueFactoryTest, CreateSpeculativeQueueWithSource) {}

TEST_F(ReportQueueFactoryTest, CreateSpeculativeQueueWithSourceVersion) {}

TEST_F(ReportQueueFactoryTest,
       CreateSpeculativeQueueWithSourceVersionAndInvalidSource) {}

// Tests if two consumers use the same provider and create two queues.
TEST_F(ReportQueueFactoryTest, SameProviderForMultipleThreads) {}

}  // namespace reporting