#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
em;
namespace enterprise_reporting {
namespace {
constexpr char kPolicyName1[] = …;
constexpr char kPolicyName2[] = …;
constexpr char kExtensionId1[] = …;
constexpr char kExtensionId2[] = …;
}
_;
Eq;
class PolicyInfoTest : public ::testing::Test { … };
TEST_F(PolicyInfoTest, ChromePolicy) { … }
TEST_F(PolicyInfoTest, ConflictPolicy) { … }
#if !BUILDFLAG(IS_ANDROID)
TEST_F(PolicyInfoTest, ExtensionPolicy) { … }
#endif
TEST_F(PolicyInfoTest, MachineLevelUserCloudPolicyFetchTimestamp) { … }
}