| Index: tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py
|
| diff --git a/tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py b/tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py
|
| index 35d84f0baecbd4088bc1e03123467e2928284bb3..bce4c879946b9d6eb2fa4b367ec5091c26d2eaf9 100644
|
| --- a/tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py
|
| +++ b/tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py
|
| @@ -52,8 +52,8 @@ class JsonWriterUnittest(writer_unittest_common.WriterUnittestCommon):
|
| ' {'
|
| ' "name": "MainPolicy",'
|
| ' "type": "main",'
|
| + ' "supported_on": ["chrome.linux:8-"],'
|
| ' "annotations": {'
|
| - ' "platforms": ["linux"],'
|
| ' "example_value": True'
|
| ' }'
|
| ' },'
|
| @@ -79,8 +79,8 @@ class JsonWriterUnittest(writer_unittest_common.WriterUnittestCommon):
|
| ' {'
|
| ' "name": "StringPolicy",'
|
| ' "type": "string",'
|
| + ' "supported_on": ["chrome.linux:8-"],'
|
| ' "annotations": {'
|
| - ' "platforms": ["linux"],'
|
| ' "example_value": "hello, world!"'
|
| ' }'
|
| ' },'
|
| @@ -110,8 +110,8 @@ class JsonWriterUnittest(writer_unittest_common.WriterUnittestCommon):
|
| ' {"name": "ProxyServerDisabled", "value": "0"},'
|
| ' {"name": "ProxyServerAutoDetect", "value": "1"},'
|
| ' ],'
|
| + ' "supported_on": ["chrome.linux:8-"],'
|
| ' "annotations": {'
|
| - ' "platforms": ["linux"],'
|
| ' "example_value": "1"'
|
| ' }'
|
| ' },'
|
| @@ -141,8 +141,8 @@ class JsonWriterUnittest(writer_unittest_common.WriterUnittestCommon):
|
| ' {'
|
| ' "name": "ListPolicy",'
|
| ' "type": "list",'
|
| + ' "supported_on": ["chrome.linux:8-"],'
|
| ' "annotations": {'
|
| - ' "platforms": ["linux"],'
|
| ' "example_value": ["foo", "bar"]'
|
| ' }'
|
| ' },'
|
| @@ -170,8 +170,8 @@ class JsonWriterUnittest(writer_unittest_common.WriterUnittestCommon):
|
| ' {'
|
| ' "name": "NonLinuxPolicy",'
|
| ' "type": "list",'
|
| + ' "supported_on": ["chrome.mac:8-"],'
|
| ' "annotations": {'
|
| - ' "platforms": ["win"],'
|
| ' "example_value": ["a"]'
|
| ' }'
|
| ' },'
|
| @@ -197,15 +197,15 @@ class JsonWriterUnittest(writer_unittest_common.WriterUnittestCommon):
|
| ' "policies": [{'
|
| ' "name": "Policy1",'
|
| ' "type": "list",'
|
| + ' "supported_on": ["chrome.linux:8-"],'
|
| ' "annotations": {'
|
| - ' "platforms": ["linux"],'
|
| ' "example_value": ["a", "b"]'
|
| ' }'
|
| ' },{'
|
| ' "name": "Policy2",'
|
| ' "type": "string",'
|
| + ' "supported_on": ["chrome.linux:8-"],'
|
| ' "annotations": {'
|
| - ' "platforms": ["linux"],'
|
| ' "example_value": "c"'
|
| ' }'
|
| ' }],'
|
|
|