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 1638453003: Adding Keygen to Policy List (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 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", "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 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 "value": "allow"}, 985 "value": "allow"},
986 { "policy": { "DefaultJavaScriptSetting": 2 }, 986 { "policy": { "DefaultJavaScriptSetting": 2 },
987 "value": "block"} 987 "value": "block"}
988 ] 988 ]
989 } 989 }
990 ], 990 ],
991 991
992 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed." 992 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
993 }, 993 },
994 994
995 "DefaultKeygenSetting": {
996 "os": ["win", "linux", "mac", "chromeos", "android"],
997 "test_policy": { "DefaultKeygenSetting": 2 },
998 "pref_mappings": [
999 { "pref": "profile.managed_default_content_settings.keygen",
1000 "indicator_selector": "[content-setting=keygen]",
1001 "indicator_tests": [
1002 { "policy": { "DefaultKeygenSetting": 1 },
1003 "value": "allow"},
1004 { "policy": { "DefaultKeygenSetting": 2 },
1005 "value": "block"}
1006 ]
1007 }
1008 ],
1009
1010 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
1011 },
1012
995 "DefaultPluginsSetting": { 1013 "DefaultPluginsSetting": {
996 "os": ["win", "linux", "mac", "chromeos"], 1014 "os": ["win", "linux", "mac", "chromeos"],
997 "test_policy": { "DefaultPluginsSetting": 2 }, 1015 "test_policy": { "DefaultPluginsSetting": 2 },
998 "pref_mappings": [ 1016 "pref_mappings": [
999 { "pref": "profile.managed_default_content_settings.plugins", 1017 { "pref": "profile.managed_default_content_settings.plugins",
1000 "indicator_selector": "[content-setting=plugins]", 1018 "indicator_selector": "[content-setting=plugins]",
1001 "indicator_tests": [ 1019 "indicator_tests": [
1002 { "policy": { "DefaultPluginsSetting": 1 }, 1020 { "policy": { "DefaultPluginsSetting": 1 },
1003 "value": "allow"}, 1021 "value": "allow"},
1004 { "policy": { "DefaultPluginsSetting": 2 }, 1022 { "policy": { "DefaultPluginsSetting": 2 },
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 "indicator_selector": "[content-exception=javascript]", 1327 "indicator_selector": "[content-exception=javascript]",
1310 "indicator_tests": [ 1328 "indicator_tests": [
1311 { "policy": { "JavaScriptBlockedForUrls": ["[*.]google.com"] } } 1329 { "policy": { "JavaScriptBlockedForUrls": ["[*.]google.com"] } }
1312 ] 1330 ]
1313 } 1331 }
1314 ], 1332 ],
1315 1333
1316 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed." 1334 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
1317 }, 1335 },
1318 1336
1337 "KeygenAllowedForUrls": {
1338 "os": ["win", "linux", "mac", "chromeos", "android"],
1339 "test_policy": { "KeygenAllowedForUrls": ["[*.]google.com"] },
1340 "pref_mappings": [
1341 { "pref": "profile.managed_keygen_allowed_for_urls",
1342 "indicator_test_setup_js": "document.querySelector('button.exceptions-li st-button[contentType=keygen]').click();",
1343 "indicator_selector": "[content-exception=keygen]",
1344 "indicator_tests": [
1345 { "policy": { "KeygenAllowedForUrls": ["[*.]google.com"] } }
1346 ]
1347 }
1348 ],
1349
1350 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
1351 },
1352
1353 "KeygenBlockedForUrls": {
1354 "os": ["win", "linux", "mac", "chromeos", "android"],
1355 "test_policy": { "KeygenBlockedForUrls": ["[*.]google.com"] },
1356 "pref_mappings": [
1357 { "pref": "profile.managed_keygen_blocked_for_urls",
1358 "indicator_test_setup_js": "document.querySelector('button.exceptions-li st-button[contentType=keygen]').click();",
1359 "indicator_selector": "[content-exception=keygen]",
1360 "indicator_tests": [
1361 { "policy": { "KeygenBlockedForUrls": ["[*.]google.com"] } }
1362 ]
1363 }
1364 ],
1365
1366 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
1367 },
1368
1319 "PluginsAllowedForUrls": { 1369 "PluginsAllowedForUrls": {
1320 "os": ["win", "linux", "mac", "chromeos"], 1370 "os": ["win", "linux", "mac", "chromeos"],
1321 "test_policy": { "PluginsAllowedForUrls": ["[*.]google.com"] }, 1371 "test_policy": { "PluginsAllowedForUrls": ["[*.]google.com"] },
1322 "pref_mappings": [ 1372 "pref_mappings": [
1323 { "pref": "profile.managed_plugins_allowed_for_urls", 1373 { "pref": "profile.managed_plugins_allowed_for_urls",
1324 "indicator_test_setup_js": "document.querySelector('button.exceptions-li st-button[contentType=plugins]').click();", 1374 "indicator_test_setup_js": "document.querySelector('button.exceptions-li st-button[contentType=plugins]').click();",
1325 "indicator_selector": "[content-exception=plugins]", 1375 "indicator_selector": "[content-exception=plugins]",
1326 "indicator_tests": [ 1376 "indicator_tests": [
1327 { "policy": { "PluginsAllowedForUrls": ["[*.]google.com"] } } 1377 { "policy": { "PluginsAllowedForUrls": ["[*.]google.com"] } }
1328 ] 1378 ]
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
2610 2660
2611 "AdditionalLaunchParameters": { 2661 "AdditionalLaunchParameters": {
2612 }, 2662 },
2613 2663
2614 "SuppressChromeFrameTurndownPrompt": { 2664 "SuppressChromeFrameTurndownPrompt": {
2615 }, 2665 },
2616 2666
2617 "SkipMetadataCheck": { 2667 "SkipMetadataCheck": {
2618 } 2668 }
2619 } 2669 }
OLDNEW
« no previous file with comments | « chrome/test/data/chromeos/enterprise/policies ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698