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

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

Issue 2239753002: Added a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyMode policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Upped id to 347 and chrome version to 55 Created 4 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 unified diff | Download patch
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 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2895 2902
2896 "AdditionalLaunchParameters": { 2903 "AdditionalLaunchParameters": {
2897 }, 2904 },
2898 2905
2899 "SuppressChromeFrameTurndownPrompt": { 2906 "SuppressChromeFrameTurndownPrompt": {
2900 }, 2907 },
2901 2908
2902 "SkipMetadataCheck": { 2909 "SkipMetadataCheck": {
2903 } 2910 }
2904 } 2911 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698