chromium/components/policy/core/browser/configuration_policy_handler_list_unittest.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 "components/policy/core/browser/configuration_policy_handler_list.h"

#include <string>
#include <tuple>

#include "base/functional/bind.h"
#include "base/values.h"
#include "components/policy/core/browser/configuration_policy_handler.h"
#include "components/policy/core/browser/policy_conversions_client.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_details.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_value_map.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace policy {

namespace {

const char kPolicyName[] =;
const char kPolicyName2[] =;
const int kPolicyValue =;

class StubPolicyHandler : public ConfigurationPolicyHandler {};

}  // namespace

class ConfigurationPolicyHandlerListTest : public ::testing::Test {};

TEST_F(ConfigurationPolicyHandlerListTest, ApplySettingsWithNormalPolicy) {}

// Future policy will be filter out unless it's whitelisted by
// kEnableExperimentalPolicies.
TEST_F(ConfigurationPolicyHandlerListTest, ApplySettingsWithFuturePolicy) {}

TEST_F(ConfigurationPolicyHandlerListTest,
       ApplySettingsWithoutFutureFilterPolicy) {}

// Device platform policy will be fitered out.
TEST_F(ConfigurationPolicyHandlerListTest,
       ApplySettingsWithPlatformDevicePolicy) {}

// Deprecated policy won't be filtered out.
TEST_F(ConfigurationPolicyHandlerListTest, ApplySettingsWithDeprecatedPolicy) {}

}  // namespace policy