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

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

Issue 1372353004: Making structure for ContentSettings and its corresponding strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits. Created 5 years, 2 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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 "test_policy": { "DefaultCookiesSetting": 2 }, 941 "test_policy": { "DefaultCookiesSetting": 2 },
942 "pref_mappings": [ 942 "pref_mappings": [
943 { "pref": "profile.managed_default_content_settings.cookies", 943 { "pref": "profile.managed_default_content_settings.cookies",
944 "indicator_selector": "[content-setting=cookies]", 944 "indicator_selector": "[content-setting=cookies]",
945 "indicator_tests": [ 945 "indicator_tests": [
946 { "policy": { "DefaultCookiesSetting": 1 }, 946 { "policy": { "DefaultCookiesSetting": 1 },
947 "value": "allow"}, 947 "value": "allow"},
948 { "policy": { "DefaultCookiesSetting": 2 }, 948 { "policy": { "DefaultCookiesSetting": 2 },
949 "value": "block"}, 949 "value": "block"},
950 { "policy": { "DefaultCookiesSetting": 4 }, 950 { "policy": { "DefaultCookiesSetting": 4 },
951 "value": "session"} 951 "value": "session_only"}
952 ] 952 ]
953 } 953 }
954 ], 954 ],
955 955
956 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed." 956 "note": "TODO(bartfab): Flag this with can_be_recommended when http://crbug. com/106682 is fixed."
957 }, 957 },
958 958
959 "DefaultImagesSetting": { 959 "DefaultImagesSetting": {
960 "os": ["win", "linux", "mac", "chromeos"], 960 "os": ["win", "linux", "mac", "chromeos"],
961 "test_policy": { "DefaultImagesSetting": 2 }, 961 "test_policy": { "DefaultImagesSetting": 2 },
(...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 2573
2574 "AdditionalLaunchParameters": { 2574 "AdditionalLaunchParameters": {
2575 }, 2575 },
2576 2576
2577 "SuppressChromeFrameTurndownPrompt": { 2577 "SuppressChromeFrameTurndownPrompt": {
2578 }, 2578 },
2579 2579
2580 "SkipMetadataCheck": { 2580 "SkipMetadataCheck": {
2581 } 2581 }
2582 } 2582 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698