chromium/components/policy/core/common/policy_bundle_unittest.cc

// Copyright 2013 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/common/policy_bundle.h"

#include <memory>
#include <utility>

#include "base/functional/callback.h"
#include "base/values.h"
#include "components/policy/core/common/external_data_fetcher.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/strings/grit/components_strings.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace policy {

namespace {

const char kPolicyClashing0[] =;
const char kPolicyClashing1[] =;
const char kPolicy0[] =;
const char kPolicy1[] =;
const char kPolicy2[] =;
const char kExtension0[] =;
const char kExtension1[] =;
const char kExtension2[] =;
const char kExtension3[] =;

// Adds test policies to |policy|.
void AddTestPolicies(PolicyMap* policy) {}

// Adds test policies to |policy| based on the parameters:
// - kPolicyClashing0 mapped to |value|, user mandatory
// - kPolicyClashing1 mapped to |value|, with |level| and |scope|
// - |name| mapped to |value|, user mandatory
void AddTestPoliciesWithParams(PolicyMap *policy,
                               const char* name,
                               int value,
                               PolicyLevel level,
                               PolicyScope scope) {}

// Returns true if |bundle| is empty.
bool IsEmpty(const PolicyBundle& bundle) {}

}  // namespace

TEST(PolicyBundleTest, Get) {}

TEST(PolicyBundleTest, CopyFrom) {}

TEST(PolicyBundleTest, MergeFrom) {}

TEST(PolicyBundleTest, Equals) {}

}  // namespace policy