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

Unified Diff: tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py

Issue 4704006: Add version information to the policy templates (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix typo in merge Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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"'
' }'
' }],'

Powered by Google App Engine
This is Rietveld 408576698