chromium/chrome/browser/enterprise/reporting/policy_info_unittest.cc

// Copyright 2019 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/enterprise/browser/reporting/policy_info.h"

#include "base/files/file_util.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/policy/chrome_browser_policy_connector.h"
#include "chrome/browser/policy/chrome_policy_conversions_client.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/policy/core/browser/policy_conversions.h"
#include "components/policy/core/common/cloud/machine_level_user_cloud_policy_manager.h"
#include "components/policy/core/common/mock_policy_service.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/proto/device_management_backend.pb.h"
#include "components/sync_preferences/pref_service_syncable.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

#if !BUILDFLAG(IS_ANDROID)
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/manifest_constants.h"
#endif  // !BUILDFLAG(IS_ANDROID)

em;

namespace enterprise_reporting {
namespace {
constexpr char kPolicyName1[] =;
constexpr char kPolicyName2[] =;

constexpr char kExtensionId1[] =;
constexpr char kExtensionId2[] =;
}  // namespace

_;
Eq;

// TODO(crbug.com/40700771): Get rid of chrome/browser dependencies and then
// move this file to components/enterprise/browser.
class PolicyInfoTest : public ::testing::Test {};

// Verify two Chrome policies are appended to the Profile report properly.
TEST_F(PolicyInfoTest, ChromePolicy) {}

TEST_F(PolicyInfoTest, ConflictPolicy) {}

#if !BUILDFLAG(IS_ANDROID)
TEST_F(PolicyInfoTest, ExtensionPolicy) {}
#endif  // !BUILDFLAG(IS_ANDROID)

TEST_F(PolicyInfoTest, MachineLevelUserCloudPolicyFetchTimestamp) {}

}  // namespace enterprise_reporting