chromium/components/policy/core/common/policy_statistics_collector_unittest.cc

// Copyright 2012 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/policy/core/common/policy_statistics_collector.h"

#include <cstring>
#include <memory>
#include <string>

#include "base/compiler_specific.h"
#include "base/functional/callback.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/test_simple_task_runner.h"
#include "base/time/time.h"
#include "base/types/expected_macros.h"
#include "base/values.h"
#include "components/policy/core/common/external_data_fetcher.h"
#include "components/policy/core/common/mock_policy_service.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "components/policy/core/common/policy_test_utils.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace policy {

namespace {

ReturnRef;

// Arbitrary policy names used for testing.
const char kTestPolicy1[] =;
const char kTestPolicy2[] =;
const char* kTestPolicy3 =;

const char kEnrollmentTokenPolicy[] =;
const char kEnrollmentOptionPolicy[] =;
const char kBrowserSigninPolicy[] =;

const int kTestPolicy1Id =;
const int kTestPolicy2Id =;
const int kTestPolicy3Id =;
const int kEnrollmentTokenPolicyId =;
const int kEnrollmentOptionPolicyId =;
const int kBrowserSigninPolicyId =;

const char kTestChromeSchema[] =;

const PolicyDetails kTestPolicyDetails[] =;

}  // namespace

class PolicyStatisticsCollectorTest : public testing::Test {};

TEST_F(PolicyStatisticsCollectorTest, NoPolicy) {}

TEST_F(PolicyStatisticsCollectorTest, CollectPending) {}

TEST_F(PolicyStatisticsCollectorTest, CollectPendingVeryOld) {}

TEST_F(PolicyStatisticsCollectorTest, CollectLater) {}

TEST_F(PolicyStatisticsCollectorTest, MultiplePolicies) {}

TEST_F(PolicyStatisticsCollectorTest, MandatoryPolicy) {}

TEST_F(PolicyStatisticsCollectorTest, RecommendedPolicy) {}

TEST_F(PolicyStatisticsCollectorTest, CloudOnly) {}

TEST_F(PolicyStatisticsCollectorTest, PlatformOnly) {}

TEST_F(PolicyStatisticsCollectorTest, Hybrid) {}

TEST_F(PolicyStatisticsCollectorTest, CloudExcepptEnrollment) {}

TEST_F(PolicyStatisticsCollectorTest, EnrollmentOnly) {}

#if !BUILDFLAG(IS_CHROMEOS)
TEST_F(PolicyStatisticsCollectorTest, BrowserSigninValid) {}

TEST_F(PolicyStatisticsCollectorTest, BrowserSigninInValid) {}
#endif

}  // namespace policy