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

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

Issue 1251543002: Show policy allowed URLs as policy exceptions in the media settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flash-links
Patch Set: Scoped ptrs. Created 5 years, 4 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 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 ] 1141 ]
1142 } 1142 }
1143 ] 1143 ]
1144 }, 1144 },
1145 1145
1146 "AudioCaptureAllowedUrls": { 1146 "AudioCaptureAllowedUrls": {
1147 "os": ["win", "linux", "mac", "chromeos"], 1147 "os": ["win", "linux", "mac", "chromeos"],
1148 "test_policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] }, 1148 "test_policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] },
1149 "pref_mappings": [ 1149 "pref_mappings": [
1150 { 1150 {
1151 "pref": "hardware.audio_capture_allowed_urls" 1151 "pref": "hardware.audio_capture_allowed_urls",
1152 "indicator_selector": "[content-exception=media-stream-mic]",
1153 "indicator_tests": [
1154 { "policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] } }
1155 ]
1152 } 1156 }
1153 ] 1157 ]
1154 }, 1158 },
1155 1159
1156 "VideoCaptureAllowed": { 1160 "VideoCaptureAllowed": {
1157 "os": ["win", "linux", "mac", "chromeos"], 1161 "os": ["win", "linux", "mac", "chromeos"],
1158 "test_policy": { "VideoCaptureAllowed": false }, 1162 "test_policy": { "VideoCaptureAllowed": false },
1159 "pref_mappings": [ 1163 "pref_mappings": [
1160 { "pref": "hardware.video_capture_enabled", 1164 { "pref": "hardware.video_capture_enabled",
1161 "indicator_selector": "[content-setting=media-stream-camera][value=block ]", 1165 "indicator_selector": "[content-setting=media-stream-camera][value=block ]",
1162 "indicator_tests": [ 1166 "indicator_tests": [
1163 { "policy": { "VideoCaptureAllowed": false }, 1167 { "policy": { "VideoCaptureAllowed": false },
1164 "value": "block" 1168 "value": "block"
1165 } 1169 }
1166 ] 1170 ]
1167 } 1171 }
1168 ] 1172 ]
1169 }, 1173 },
1170 1174
1171 "VideoCaptureAllowedUrls": { 1175 "VideoCaptureAllowedUrls": {
1172 "os": ["win", "linux", "mac", "chromeos"], 1176 "os": ["win", "linux", "mac", "chromeos"],
1173 "test_policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] }, 1177 "test_policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] },
1174 "pref_mappings": [ 1178 "pref_mappings": [
1175 { 1179 {
1176 "pref": "hardware.video_capture_allowed_urls" 1180 "pref": "hardware.video_capture_allowed_urls",
1181 "indicator_selector": "[content-exception=media-stream-camera]",
1182 "indicator_tests": [
1183 { "policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] } }
1184 ]
1177 } 1185 }
1178 ] 1186 ]
1179 }, 1187 },
1180 1188
1181 "AutoSelectCertificateForUrls": { 1189 "AutoSelectCertificateForUrls": {
1182 "os": ["win", "linux", "mac", "chromeos"], 1190 "os": ["win", "linux", "mac", "chromeos"],
1183 "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://examp le.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] }, 1191 "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://examp le.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] },
1184 "pref_mappings": [ 1192 "pref_mappings": [
1185 { "pref": "profile.managed_auto_select_certificate_for_urls" } 1193 { "pref": "profile.managed_auto_select_certificate_for_urls" }
1186 ], 1194 ],
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 2539
2532 "AdditionalLaunchParameters": { 2540 "AdditionalLaunchParameters": {
2533 }, 2541 },
2534 2542
2535 "SuppressChromeFrameTurndownPrompt": { 2543 "SuppressChromeFrameTurndownPrompt": {
2536 }, 2544 },
2537 2545
2538 "SkipMetadataCheck": { 2546 "SkipMetadataCheck": {
2539 } 2547 }
2540 } 2548 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698