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

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

Issue 1210173012: Split the Media settings UI into separate microphone and camera sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reintroduced the label, but as hidden. 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
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 ], 1058 ],
1059 1059
1060 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed." 1060 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
1061 }, 1061 },
1062 1062
1063 "DefaultMediaStreamSetting": { 1063 "DefaultMediaStreamSetting": {
1064 "os": ["win", "linux", "mac", "chromeos"], 1064 "os": ["win", "linux", "mac", "chromeos"],
1065 "test_policy": { "DefaultMediaStreamSetting": 2 }, 1065 "test_policy": { "DefaultMediaStreamSetting": 2 },
1066 "pref_mappings": [ 1066 "pref_mappings": [
1067 { "pref": "profile.managed_default_content_settings.media_stream", 1067 { "pref": "profile.managed_default_content_settings.media_stream",
1068 "indicator_selector": "[content-setting=media-stream]", 1068 "indicator_selector": "[content-setting=media-stream-mic],[content-setti ng=media-stream-camera]",
1069 "indicator_tests": [ 1069 "indicator_tests": [
1070 { "policy": { "DefaultMediaStreamSetting": 2 }, 1070 { "policy": { "DefaultMediaStreamSetting": 2 },
1071 "value": "block" 1071 "value": "block"
1072 }, 1072 },
1073 { "policy": { "DefaultMediaStreamSetting": 3 }, 1073 { "policy": { "DefaultMediaStreamSetting": 3 },
1074 "value": "ask" 1074 "value": "ask"
1075 } 1075 }
1076 ] 1076 ]
1077 } 1077 }
1078 ], 1078 ],
1079 1079
1080 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed." 1080 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
1081 }, 1081 },
1082
1083 "DefaultMediaStreamSetting.OverriddenByAudioCaptureAllowed": {
1084 "os": ["win", "linux", "mac", "chromeos"],
1085 "test_policy": { "DefaultMediaStreamSetting": 3,
1086 "AudioCaptureAllowed": false },
1087 "pref_mappings": [
1088 { "pref": "profile.managed_default_content_settings.media_stream",
1089 "indicator_selector": "[content-setting=media-stream-mic]",
1090 "indicator_tests": [
1091 { "policy": { "AudioCaptureAllowed": false },
1092 "value": "block"
1093 },
1094 { "policy": { "AudioCaptureAllowed": true,
1095 "DefaultMediaStreamSetting": 2 },
1096 "value": "block"
1097 },
1098 { "policy": { "AudioCaptureAllowed": true,
1099 "DefaultMediaStreamSetting": 3 },
1100 "value": "ask"
1101 }
1102 ]
1103 }
1104 ]
1105 },
1106
1107 "DefaultMediaStreamSetting.OverriddenByVideoCaptureAllowed": {
1108 "os": ["win", "linux", "mac", "chromeos"],
1109 "test_policy": { "DefaultMediaStreamSetting": 3,
1110 "VideoCaptureAllowed": false },
1111 "pref_mappings": [
1112 { "pref": "profile.managed_default_content_settings.media_stream",
1113 "indicator_selector": "[content-setting=media-stream-camera]",
1114 "indicator_tests": [
1115 { "policy": { "VideoCaptureAllowed": false },
1116 "value": "block"
1117 },
1118 { "policy": { "VideoCaptureAllowed": true,
1119 "DefaultMediaStreamSetting": 2 },
1120 "value": "block"
1121 },
1122 { "policy": { "VideoCaptureAllowed": true,
1123 "DefaultMediaStreamSetting": 3 },
1124 "value": "ask"
1125 }
1126 ]
1127 }
1128 ]
1129 },
1082 1130
1083 "AudioCaptureAllowed": { 1131 "AudioCaptureAllowed": {
1084 "os": ["win", "linux", "mac", "chromeos"], 1132 "os": ["win", "linux", "mac", "chromeos"],
1085 "test_policy": { "AudioCaptureAllowed": false }, 1133 "test_policy": { "AudioCaptureAllowed": false },
1086 "pref_mappings": [ 1134 "pref_mappings": [
1087 { "pref": "hardware.audio_capture_enabled", 1135 { "pref": "hardware.audio_capture_enabled",
1088 "indicator_selector": "#media-indicator", 1136 "indicator_selector": "[content-setting=media-stream-mic][value=block]",
1089 "indicator_tests": [ 1137 "indicator_tests": [
1090 { "policy": { "AudioCaptureAllowed": false } } 1138 { "policy": { "AudioCaptureAllowed": false },
1139 "value": "block"
1140 }
1091 ] 1141 ]
1092 } 1142 }
1093 ] 1143 ]
1094 }, 1144 },
1095 1145
1096 "AudioCaptureAllowedUrls": { 1146 "AudioCaptureAllowedUrls": {
1097 "os": ["win", "linux", "mac", "chromeos"], 1147 "os": ["win", "linux", "mac", "chromeos"],
1098 "test_policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] }, 1148 "test_policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] },
1099 "pref_mappings": [ 1149 "pref_mappings": [
1100 { 1150 {
1101 "pref": "hardware.audio_capture_allowed_urls" 1151 "pref": "hardware.audio_capture_allowed_urls"
1102 } 1152 }
1103 ] 1153 ]
1104 }, 1154 },
1105 1155
1106 "VideoCaptureAllowed": { 1156 "VideoCaptureAllowed": {
1107 "os": ["win", "linux", "mac", "chromeos"], 1157 "os": ["win", "linux", "mac", "chromeos"],
1108 "test_policy": { "VideoCaptureAllowed": false }, 1158 "test_policy": { "VideoCaptureAllowed": false },
1109 "pref_mappings": [ 1159 "pref_mappings": [
1110 { "pref": "hardware.video_capture_enabled", 1160 { "pref": "hardware.video_capture_enabled",
1111 "indicator_selector": "#media-indicator", 1161 "indicator_selector": "[content-setting=media-stream-camera][value=block ]",
1112 "indicator_tests": [ 1162 "indicator_tests": [
1113 { "policy": { "VideoCaptureAllowed": false } } 1163 { "policy": { "VideoCaptureAllowed": false },
1164 "value": "block"
1165 }
1114 ] 1166 ]
1115 } 1167 }
1116 ] 1168 ]
1117 }, 1169 },
1118 1170
1119 "VideoCaptureAllowedUrls": { 1171 "VideoCaptureAllowedUrls": {
1120 "os": ["win", "linux", "mac", "chromeos"], 1172 "os": ["win", "linux", "mac", "chromeos"],
1121 "test_policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] }, 1173 "test_policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] },
1122 "pref_mappings": [ 1174 "pref_mappings": [
1123 { 1175 {
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 2545
2494 "AdditionalLaunchParameters": { 2546 "AdditionalLaunchParameters": {
2495 }, 2547 },
2496 2548
2497 "SuppressChromeFrameTurndownPrompt": { 2549 "SuppressChromeFrameTurndownPrompt": {
2498 }, 2550 },
2499 2551
2500 "SkipMetadataCheck": { 2552 "SkipMetadataCheck": {
2501 } 2553 }
2502 } 2554 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698