chromium/chrome/browser/policy/test/platform_management_service_browsertest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/values.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/enterprise/browser_management/management_service_factory.h"
#include "chrome/browser/policy/policy_test_utils.h"
#include "components/policy/core/common/mock_configuration_policy_provider.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
#include "content/public/test/browser_test.h"

namespace policy {

// Similar to PolicyTest but sets a couple of policies before the browser is
// started.
class PlatformPolicyManagementServiceTest : public PolicyTest {};

#if !BUILDFLAG(IS_CHROMEOS_ASH)
// Some testing machines/bots are managed, so we cannot test that they become
// managed after setting one policy. For those machines we check the presence of
// `EnterpriseManagementAuthority::COMPUTER_LOCAL` in the management
// authorities. For other machines we test that the management authority
// trustworthiness becomes `ManagementAuthorityTrustworthiness::LOW`.
IN_PROC_BROWSER_TEST_F(PlatformPolicyManagementServiceTest, HasPolicy) {}
#endif

}  //  namespace policy