blob: 93f52af0bccfd510d7267b02d6d609bea08087f0 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/policy/cloud/cloud_policy_test_utils.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
namespace policy {
void GetExpectedDefaultPolicy(PolicyMap* policy_map) {
#if defined(OS_ANDROID)
policy_map->Set(key::kNTPContentSuggestionsEnabled, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_ENTERPRISE_DEFAULT,
base::Value(false), nullptr);
#elif BUILDFLAG(IS_CHROMEOS_ASH)
SetEnterpriseUsersDefaults(policy_map);
#elif BUILDFLAG(IS_CHROMEOS_LACROS)
SetEnterpriseUsersProfileDefaults(policy_map);
#endif
}
} // namespace policy