chromium/components/enterprise/content/copy_prevention_settings_policy_handler_unittests.cc

// Copyright 2021 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/content/copy_prevention_settings_policy_handler.h"

#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/types/expected_macros.h"
#include "base/values.h"
#include "components/enterprise/content/pref_names.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/prefs/pref_value_map.h"
#include "testing/gtest/include/gtest/gtest.h"

const char kPolicyName[] =;

const char kSchema[] =;

const char kValidPolicy[] =;

const char kValidWithoutMinDataSizePolicy[] =;

const char kNegativeMinDataSizeInvalidPolicy[] =;

const char kMissingEnableListPolicy[] =;

const char kMissingDisableListPolicy[] =;

const char kDisableListWithWildcardInvalidPolicy[] =;

class CopyPreventionSettingsPolicyHandlerTest : public testing::Test {};

TEST_F(CopyPreventionSettingsPolicyHandlerTest, TestValidPolicy) {}

TEST_F(CopyPreventionSettingsPolicyHandlerTest,
       TestValidPolicyNotAppliedIfNotFromCloud) {}

TEST_F(CopyPreventionSettingsPolicyHandlerTest,
       TestValidPolicyWithoutMinDataSizeDefaultsTo100) {}

TEST_F(CopyPreventionSettingsPolicyHandlerTest, TestMissingEnableListInvalid) {}

TEST_F(CopyPreventionSettingsPolicyHandlerTest, TestMissingDisableListInvalid) {}

TEST_F(CopyPreventionSettingsPolicyHandlerTest,
       TestDisableListContainingWildcardInvalid) {}

TEST_F(CopyPreventionSettingsPolicyHandlerTest,
       TestNegativeMinDataSizeInvalid) {}