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

Unified Diff: components/sync_driver/sync_policy_handler_unittest.cc

Issue 1304843004: Add source column to chrome://policy showing the origins of policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed another test. Created 5 years, 3 months 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: components/sync_driver/sync_policy_handler_unittest.cc
diff --git a/components/sync_driver/sync_policy_handler_unittest.cc b/components/sync_driver/sync_policy_handler_unittest.cc
index e0f2c0d48049baab4dc1672e96f848db35435e47..2d95ec1c1cf71da2dadc0e53bbc957c863efe07e 100644
--- a/components/sync_driver/sync_policy_handler_unittest.cc
+++ b/components/sync_driver/sync_policy_handler_unittest.cc
@@ -5,6 +5,7 @@
#include "base/prefs/pref_value_map.h"
#include "base/values.h"
#include "components/policy/core/common/policy_map.h"
+#include "components/policy/core/common/policy_types.h"
#include "components/sync_driver/pref_names.h"
#include "components/sync_driver/sync_policy_handler.h"
#include "policy/policy_constants.h"
@@ -28,6 +29,7 @@ TEST_F(SyncPolicyHandlerTest, Enabled) {
policy.Set(policy::key::kSyncDisabled,
policy::POLICY_LEVEL_MANDATORY,
policy::POLICY_SCOPE_USER,
+ policy::POLICY_SOURCE_CLOUD,
new base::FundamentalValue(false),
NULL);
SyncPolicyHandler handler;
@@ -43,6 +45,7 @@ TEST_F(SyncPolicyHandlerTest, Disabled) {
policy.Set(policy::key::kSyncDisabled,
policy::POLICY_LEVEL_MANDATORY,
policy::POLICY_SCOPE_USER,
+ policy::POLICY_SOURCE_CLOUD,
new base::FundamentalValue(true),
NULL);
SyncPolicyHandler handler;
« no previous file with comments | « components/search_engines/default_search_policy_handler_unittest.cc ('k') | remoting/host/policy_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698