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

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: Back out of mocking the world for cros 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
« chrome/common/pref_names.cc ('K') | « 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": {
Mattias Nissler (ping if slow) 2013/05/28 08:11:39 This policy is mapped to a pref, so it should have
tommi (sloooow) - chröme 2013/05/28 10:19:43 Can you help me out here? What would be the appro
tommi (sloooow) - chröme 2013/05/28 10:52:49 Nevermind. Done.
968 },
969
967 "VideoCaptureAllowed": { 970 "VideoCaptureAllowed": {
968 "os": ["win", "linux", "mac", "chromeos"], 971 "os": ["win", "linux", "mac", "chromeos"],
969 "test_policy": { "VideoCaptureAllowed": false }, 972 "test_policy": { "VideoCaptureAllowed": false },
970 "pref_mappings": [ 973 "pref_mappings": [
971 { "pref": "hardware.video_capture_enabled", 974 { "pref": "hardware.video_capture_enabled",
972 "indicator_selector": "#media-indicator", 975 "indicator_selector": "#media-indicator",
973 "indicator_tests": [ 976 "indicator_tests": [
974 { "policy": { "VideoCaptureAllowed": false } } 977 { "policy": { "VideoCaptureAllowed": false } }
975 ] 978 ]
976 } 979 }
977 ] 980 ]
978 }, 981 },
979 982
983 "VideoCaptureAllowedUrls": {
984 },
985
980 "AutoSelectCertificateForUrls": { 986 "AutoSelectCertificateForUrls": {
981 "os": ["win", "linux", "mac", "chromeos"], 987 "os": ["win", "linux", "mac", "chromeos"],
982 "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://examp le.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] }, 988 "test_policy": { "AutoSelectCertificateForUrls": ["{'pattern':'https://examp le.com','filter':{'ISSUER':{'CN': 'issuer-name'}}}"] },
983 "pref_mappings": [ 989 "pref_mappings": [
984 { "pref": "profile.managed_auto_select_certificate_for_urls" } 990 { "pref": "profile.managed_auto_select_certificate_for_urls" }
985 ], 991 ],
986 992
987 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed." 993 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
988 }, 994 },
989 995
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 1906
1901 "ChromeFrameContentTypes": { 1907 "ChromeFrameContentTypes": {
1902 }, 1908 },
1903 1909
1904 "GCFUserDataDir": { 1910 "GCFUserDataDir": {
1905 }, 1911 },
1906 1912
1907 "AdditionalLaunchParameters": { 1913 "AdditionalLaunchParameters": {
1908 } 1914 }
1909 } 1915 }
OLDNEW
« chrome/common/pref_names.cc ('K') | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698