Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/browser/policy/cloud/cloud_policy_test_utils.cc

Issue 2534983002: Re-enabled UserCloudPolicyManagerChromeOS unit tests (Closed)
Patch Set: review feedback Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_test_utils.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/memory/ptr_util.h"
6 #include "base/values.h"
7 #include "chrome/browser/policy/cloud/cloud_policy_test_utils.h"
8 #include "components/policy/core/common/policy_map.h"
9 #include "components/policy/core/common/policy_types.h"
10 #include "components/policy/policy_constants.h"
11
12 namespace policy {
13
14 void GetExpectedDefaultPolicy(PolicyMap* policy_map) {
15 policy_map->Set(key::kNTPContentSuggestionsEnabled, POLICY_LEVEL_MANDATORY,
16 POLICY_SCOPE_USER, POLICY_SOURCE_ENTERPRISE_DEFAULT,
17 base::WrapUnique(new base::FundamentalValue(false)), nullptr);
18 #if defined(OS_CHROMEOS)
19 SetEnterpriseUsersDefaults(policy_map);
20 #endif
21 }
22
23
24 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_test_utils.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698