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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Test compile fix Created 3 years, 10 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", "android", "Defaults to empty if not specifie d."], 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": [
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 }, 527 },
528 528
529 "MediaCacheSize": { 529 "MediaCacheSize": {
530 "os": ["win", "mac", "linux"], 530 "os": ["win", "mac", "linux"],
531 "test_policy": { "MediaCacheSize": 200 }, 531 "test_policy": { "MediaCacheSize": 200 },
532 "pref_mappings": [ 532 "pref_mappings": [
533 { "pref": "browser.media_cache_size" } 533 { "pref": "browser.media_cache_size" }
534 ] 534 ]
535 }, 535 },
536 536
537 "DownloadRestrictions": {
538 "os": ["win", "mac", "linux", "chromeos"],
539 "can_be_recommended": true,
540 "test_policy": { "DownloadRestrictions": 3 },
541 "pref_mappings": [
542 { "pref": "download_restrictions" }
543 ]
544 },
545
546
537 "DownloadDirectory.0": { 547 "DownloadDirectory.0": {
538 "os": ["win", "mac", "linux", "chromeos"], 548 "os": ["win", "mac", "linux", "chromeos"],
539 "can_be_recommended": true, 549 "can_be_recommended": true,
540 "test_policy": { "DownloadDirectory": "${user_home}/test-downloads" }, 550 "test_policy": { "DownloadDirectory": "${user_home}/test-downloads" },
541 "pref_mappings": [ 551 "pref_mappings": [
542 { "pref": "download.default_directory", 552 { "pref": "download.default_directory",
543 "indicator_tests": [ 553 "indicator_tests": [
544 { "policy": { "DownloadDirectory": "${user_home}/test-downloads" } } 554 { "policy": { "DownloadDirectory": "${user_home}/test-downloads" } }
545 ] 555 ]
546 }, 556 },
(...skipping 2512 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 3069
3060 "AdditionalLaunchParameters": { 3070 "AdditionalLaunchParameters": {
3061 }, 3071 },
3062 3072
3063 "SuppressChromeFrameTurndownPrompt": { 3073 "SuppressChromeFrameTurndownPrompt": {
3064 }, 3074 },
3065 3075
3066 "SkipMetadataCheck": { 3076 "SkipMetadataCheck": {
3067 } 3077 }
3068 } 3078 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698