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

Unified Diff: chrome/browser/policy/cloud/cloud_policy_test_utils.cc

Issue 2534983002: Re-enabled UserCloudPolicyManagerChromeOS unit tests (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud/cloud_policy_test_utils.cc
diff --git a/chrome/browser/policy/cloud/cloud_policy_test_utils.cc b/chrome/browser/policy/cloud/cloud_policy_test_utils.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2604139bcf732130e474ee60bcd3448122844210
--- /dev/null
+++ b/chrome/browser/policy/cloud/cloud_policy_test_utils.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 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 "base/memory/ptr_util.h"
+#include "chrome/browser/policy/cloud/cloud_policy_test_utils.h"
+#include "components/policy/core/common/policy_map.h"
+#include "components/policy/policy_constants.h"
+
+namespace policy {
+
+void GetExpectedDefaultPolicy(PolicyMap* policy_map) {
+ policy_map->Set(key::kNTPContentSuggestionsEnabled, POLICY_LEVEL_MANDATORY,
emaxx 2016/11/29 16:21:15 nit: include "components/policy/core/common/policy
Andrew T Wilson (Slow) 2016/11/30 10:02:34 Done.
+ POLICY_SCOPE_USER, POLICY_SOURCE_ENTERPRISE_DEFAULT,
+ base::WrapUnique(new base::FundamentalValue(false)), nullptr);
emaxx 2016/11/29 16:21:15 nit: include "base/values.h"
Andrew T Wilson (Slow) 2016/11/30 10:02:34 Done.
+#if defined(OS_CHROMEOS)
+ SetEnterpriseUsersDefaults(policy_map);
pmarko 2016/11/29 14:03:34 Two small questions: - Is this not defeating the p
Andrew T Wilson (Slow) 2016/11/30 10:02:34 This was turning out to be a maintenance problem,
+#endif
+}
+
+
+} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698