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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Rebase Created 3 years, 6 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 }, 533 },
534 534
535 "MediaCacheSize": { 535 "MediaCacheSize": {
536 "os": ["win", "mac", "linux"], 536 "os": ["win", "mac", "linux"],
537 "test_policy": { "MediaCacheSize": 200 }, 537 "test_policy": { "MediaCacheSize": 200 },
538 "pref_mappings": [ 538 "pref_mappings": [
539 { "pref": "browser.media_cache_size" } 539 { "pref": "browser.media_cache_size" }
540 ] 540 ]
541 }, 541 },
542 542
543 "DownloadRestrictions": {
544 "os": ["win", "mac", "linux", "chromeos"],
545 "can_be_recommended": true,
546 "test_policy": { "DownloadRestrictions": 3 },
547 "pref_mappings": [
548 { "pref": "download_restrictions" }
549 ]
550 },
551
552
543 "DownloadDirectory.0": { 553 "DownloadDirectory.0": {
544 "os": ["win", "mac", "linux", "chromeos"], 554 "os": ["win", "mac", "linux", "chromeos"],
545 "can_be_recommended": true, 555 "can_be_recommended": true,
546 "test_policy": { "DownloadDirectory": "${user_home}/test-downloads" }, 556 "test_policy": { "DownloadDirectory": "${user_home}/test-downloads" },
547 "pref_mappings": [ 557 "pref_mappings": [
548 { "pref": "download.default_directory", 558 { "pref": "download.default_directory",
549 "indicator_tests": [ 559 "indicator_tests": [
550 { "policy": { "DownloadDirectory": "${user_home}/test-downloads" } } 560 { "policy": { "DownloadDirectory": "${user_home}/test-downloads" } }
551 ] 561 ]
552 }, 562 },
(...skipping 2554 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 3117
3108 "AdditionalLaunchParameters": { 3118 "AdditionalLaunchParameters": {
3109 }, 3119 },
3110 3120
3111 "SuppressChromeFrameTurndownPrompt": { 3121 "SuppressChromeFrameTurndownPrompt": {
3112 }, 3122 },
3113 3123
3114 "SkipMetadataCheck": { 3124 "SkipMetadataCheck": {
3115 } 3125 }
3116 } 3126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698