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

Side by Side Diff: chrome/test/data/policy/policy_test_cases.json

Issue 2401743003: Recommit and fix of "Added a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyM… (Closed)
Patch Set: Rebase Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « chrome/common/pref_names.cc ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "-- Template --": { 2 "-- Template --": {
3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below. The name of the top level entry should be of the form <policy name>[. suffix]. The optional suffix is used for defining multiple test cases for a sing le policy.", 3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below. The name of the top level entry should be of the form <policy name>[. suffix]. The optional suffix is used for defining multiple test cases for a sing le policy.",
4 4
5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "Defaults to empty if not specified."], 5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "android", "Defaults to empty if not specifie d."],
6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.", 6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.",
7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.", 7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.",
8 "test_policy": "A policy dictionary that should make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.", 8 "test_policy": "A policy dictionary that should make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.",
9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.", 9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.",
10 "pref_mappings": [ 10 "pref_mappings": [
11 { "pref": "The affected preference's name.", 11 { "pref": "The affected preference's name.",
12 "local_state": "Whether |pref| is registered in local state's PrefServic e instead of the profile's PrefService. Defaults to |false| if not specified.", 12 "local_state": "Whether |pref| is registered in local state's PrefServic e instead of the profile's PrefService. Defaults to |false| if not specified.",
13 "check_for_mandatory": "Should the preference be tested when a mandatory value is set for the policy? Defaults to |true| if not specified.", 13 "check_for_mandatory": "Should the preference be tested when a mandatory value is set for the policy? Defaults to |true| if not specified.",
14 "check_for_recommended": "Should the preference be tested when a recomme nded value is set for the policy? Defaults to |true| if not specified.", 14 "check_for_recommended": "Should the preference be tested when a recomme nded value is set for the policy? Defaults to |true| if not specified.",
15 "note": "When |can_be_recommended| is |false|, the policy is never set t o a recommended value so |check_for_recommended| has no effect.", 15 "note": "When |can_be_recommended| is |false|, the policy is never set t o a recommended value so |check_for_recommended| has no effect.",
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 { "policy": { "SafeBrowsingEnabled": false } } 289 { "policy": { "SafeBrowsingEnabled": false } }
290 ] 290 ]
291 } 291 }
292 ] 292 ]
293 }, 293 },
294 294
295 "ForceSafeSearch": { 295 "ForceSafeSearch": {
296 "pref": "settings.force_safesearch", 296 "pref": "settings.force_safesearch",
297 "test_policy": { "ForceSafeSearch": true }, 297 "test_policy": { "ForceSafeSearch": true },
298 "settings_pages": [], 298 "settings_pages": [],
299 "os": ["win", "linux", "mac", "chromeos"] 299 "os": ["win", "linux", "mac", "chromeos", "android"]
300 }, 300 },
301 301
302 "ForceGoogleSafeSearch": { 302 "ForceGoogleSafeSearch": {
303 "pref": "settings.force_google_safesearch", 303 "pref": "settings.force_google_safesearch",
304 "test_policy": { "ForceGoogleSafeSearch": true }, 304 "test_policy": { "ForceGoogleSafeSearch": true },
305 "settings_pages": [], 305 "settings_pages": [],
306 "os": ["win", "linux", "mac", "chromeos"] 306 "os": ["win", "linux", "mac", "chromeos", "android"]
307 }, 307 },
308 308
309 "ForceYouTubeSafetyMode": { 309 "ForceYouTubeSafetyMode": {
310 "pref": "settings.force_youtube_safety_mode", 310 "pref": "settings.force_youtube_safety_mode",
311 "test_policy": { "ForceYouTubeSafetyMode": true }, 311 "test_policy": { "ForceYouTubeSafetyMode": true },
312 "settings_pages": [], 312 "settings_pages": [],
313 "os": ["win", "linux", "mac", "chromeos"] 313 "os": ["win", "linux", "mac", "chromeos", "android"]
314 },
315
316 "ForceYouTubeRestrict": {
317 "pref": "settings.force_youtube_restrict",
318 "test_policy": { "ForceYouTubeRestrict": 1 },
319 "settings_pages": [],
320 "os": ["win", "linux", "mac", "chromeos", "android"]
314 }, 321 },
315 322
316 "MetricsReportingEnabled": { 323 "MetricsReportingEnabled": {
317 "os": ["win", "mac", "linux"], 324 "os": ["win", "mac", "linux"],
318 "official_only": true, 325 "official_only": true,
319 "can_be_recommended": true, 326 "can_be_recommended": true,
320 "test_policy": { "MetricsReportingEnabled": false }, 327 "test_policy": { "MetricsReportingEnabled": false },
321 "indicator_selector": "#metrics-reporting-disabled-icon", 328 "indicator_selector": "#metrics-reporting-disabled-icon",
322 "pref_mappings": [ 329 "pref_mappings": [
323 { "pref": "user_experience_metrics.reporting_enabled", 330 { "pref": "user_experience_metrics.reporting_enabled",
(...skipping 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after
2908 2915
2909 "AdditionalLaunchParameters": { 2916 "AdditionalLaunchParameters": {
2910 }, 2917 },
2911 2918
2912 "SuppressChromeFrameTurndownPrompt": { 2919 "SuppressChromeFrameTurndownPrompt": {
2913 }, 2920 },
2914 2921
2915 "SkipMetadataCheck": { 2922 "SkipMetadataCheck": {
2916 } 2923 }
2917 } 2924 }
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698