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

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

Issue 1217333002: Add a group policy for hardware acceleration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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", "Defaults to empty if not specified."],
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 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2246 "os": ["win", "linux", "mac", "chromeos"], 2246 "os": ["win", "linux", "mac", "chromeos"],
2247 "test_policy": { "SSLErrorOverrideAllowed": true }, 2247 "test_policy": { "SSLErrorOverrideAllowed": true },
2248 "pref_mappings": [ 2248 "pref_mappings": [
2249 { "pref": "ssl.error_override_allowed" } 2249 { "pref": "ssl.error_override_allowed" }
2250 ] 2250 ]
2251 }, 2251 },
2252 2252
2253 "KeyPermissions": { 2253 "KeyPermissions": {
2254 }, 2254 },
2255 2255
2256 "HardwareAccelerationModeEnabled": {
2257 "os": ["win", "linux", "mac"],
2258 "test_policy": { "HardwareAccelerationModeEnabled": true },
2259 "pref_mappings": [
2260 { "pref": "hardware_acceleration_mode.enabled",
2261 "local_state": true,
2262 "indicator_tests": [
2263 { "policy": { "HardwareAccelerationModeEnabled": true } },
2264 { "policy": { "HardwareAccelerationModeEnabled": false } }
Andrew T Wilson (Slow) 2015/07/16 09:59:55 Just curious, should we be also setting read_only:
Zhenyao Mo 2015/07/16 18:06:31 Done.
Zhenyao Mo 2015/07/16 20:21:16 OK, re-read the explanation in the template on top
2265 ]
2266 }
2267 ]
2268 },
2269
2256 "----- Chrome OS device policies ---------------------------------------": {}, 2270 "----- Chrome OS device policies ---------------------------------------": {},
2257 2271
2258 "DevicePolicyRefreshRate": { 2272 "DevicePolicyRefreshRate": {
2259 "os": ["chromeos"], 2273 "os": ["chromeos"],
2260 "test_policy": { "DevicePolicyRefreshRate": 300000 }, 2274 "test_policy": { "DevicePolicyRefreshRate": 300000 },
2261 "pref_mappings": [ 2275 "pref_mappings": [
2262 { "pref": "policy.device_refresh_rate", 2276 { "pref": "policy.device_refresh_rate",
2263 "local_state": true } 2277 "local_state": true }
2264 ] 2278 ]
2265 }, 2279 },
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 2493
2480 "AdditionalLaunchParameters": { 2494 "AdditionalLaunchParameters": {
2481 }, 2495 },
2482 2496
2483 "SuppressChromeFrameTurndownPrompt": { 2497 "SuppressChromeFrameTurndownPrompt": {
2484 }, 2498 },
2485 2499
2486 "SkipMetadataCheck": { 2500 "SkipMetadataCheck": {
2487 } 2501 }
2488 } 2502 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698