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

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

Issue 15738004: Add a policy list for access to capture devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference bug for code cleanup Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.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.", 3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below.",
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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 "pref_mappings": [ 957 "pref_mappings": [
958 { "pref": "hardware.audio_capture_enabled", 958 { "pref": "hardware.audio_capture_enabled",
959 "indicator_selector": "#media-indicator", 959 "indicator_selector": "#media-indicator",
960 "indicator_tests": [ 960 "indicator_tests": [
961 { "policy": { "AudioCaptureAllowed": false } } 961 { "policy": { "AudioCaptureAllowed": false } }
962 ] 962 ]
963 } 963 }
964 ] 964 ]
965 }, 965 },
966 966
967 "AudioCaptureAllowedUrls": {
968 "os": ["win", "linux", "mac", "chromeos"],
969 "test_policy": { "AudioCaptureAllowedUrls": ["[*.]google.com"] },
970 "pref_mappings": [
971 {
972 "pref": "hardware.audio_capture_allowed_urls"
973 }
974 ]
975 },
976
967 "VideoCaptureAllowed": { 977 "VideoCaptureAllowed": {
968 "os": ["win", "linux", "mac", "chromeos"], 978 "os": ["win", "linux", "mac", "chromeos"],
969 "test_policy": { "VideoCaptureAllowed": false }, 979 "test_policy": { "VideoCaptureAllowed": false },
970 "pref_mappings": [ 980 "pref_mappings": [
971 { "pref": "hardware.video_capture_enabled", 981 { "pref": "hardware.video_capture_enabled",
972 "indicator_selector": "#media-indicator", 982 "indicator_selector": "#media-indicator",
973 "indicator_tests": [ 983 "indicator_tests": [
974 { "policy": { "VideoCaptureAllowed": false } } 984 { "policy": { "VideoCaptureAllowed": false } }
975 ] 985 ]
976 } 986 }
977 ] 987 ]
978 }, 988 },
979 989
990 "VideoCaptureAllowedUrls": {
991 "os": ["win", "linux", "mac", "chromeos"],
992 "test_policy": { "VideoCaptureAllowedUrls": ["[*.]google.com"] },
993 "pref_mappings": [
994 {
995 "pref": "hardware.video_capture_allowed_urls"
996 }
997 ]
998 },
999
980 "AutoSelectCertificateForUrls": { 1000 "AutoSelectCertificateForUrls": {
981 "os": ["win", "linux", "mac", "chromeos"], 1001 "os": ["win", "linux", "mac", "chromeos"],
982 "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://examp le.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] }, 1002 "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://examp le.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] },
983 "pref_mappings": [ 1003 "pref_mappings": [
984 { "pref": "profile.managed_auto_select_certificate_for_urls" } 1004 { "pref": "profile.managed_auto_select_certificate_for_urls" }
985 ], 1005 ],
986 1006
987 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed." 1007 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
988 }, 1008 },
989 1009
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 1920
1901 "ChromeFrameContentTypes": { 1921 "ChromeFrameContentTypes": {
1902 }, 1922 },
1903 1923
1904 "GCFUserDataDir": { 1924 "GCFUserDataDir": {
1905 }, 1925 },
1906 1926
1907 "AdditionalLaunchParameters": { 1927 "AdditionalLaunchParameters": {
1908 } 1928 }
1909 } 1929 }
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698