chromium/chrome/browser/policy/messaging_layer/util/report_queue_manual_test_context_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 "chrome/browser/policy/messaging_layer/util/report_queue_manual_test_context.h"

#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "chrome/browser/policy/dm_token_utils.h"
#include "components/policy/core/common/cloud/dm_token.h"
#include "components/reporting/client/mock_report_queue.h"
#include "components/reporting/client/report_queue.h"
#include "components/reporting/client/report_queue_configuration.h"
#include "components/reporting/proto/synced/record_constants.pb.h"
#include "components/reporting/util/status.h"
#include "components/reporting/util/test_support_callbacks.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
Invoke;
IsEmpty;
WithArgs;

namespace reporting {
namespace {

class ReportQueueManualTestContextTest : public testing::Test {};

// TODO(crbug.com/40878091) Disabled due to flake on Mac.
#if BUILDFLAG(IS_MAC)
TEST_F(
    ReportQueueManualTestContextTest,
    DISABLED_BuildsReportQueueManualTestContextAndUploadsDeviceEventMessages) {
#else
TEST_F(ReportQueueManualTestContextTest,
       BuildsReportQueueManualTestContextAndUploadsDeviceEventMessages) {}

#if BUILDFLAG(IS_MAC)
TEST_F(ReportQueueManualTestContextTest,
       DISABLED_BuildsReportQueueManualTestContextAndUploadsUserEventMessages) {
#else
TEST_F(ReportQueueManualTestContextTest,
       BuildsReportQueueManualTestContextAndUploadsUserEventMessages) {}

}  // namespace
}  // namespace reporting