Chromium Code Reviews

Unified Diff: tools/grit/grit/format/policy_templates/writers/adm_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.
Jump to:
View side-by-side diff with in-line comments
Index: tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py
diff --git a/tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py b/tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py
index 6c75d2b86f862f00f6d7c828e7ca57b2890a3769..b823aaef86116992447d77657140b82883a1cc74 100644
--- a/tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py
+++ b/tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py
@@ -69,7 +69,7 @@ chromium="Chromium"'''
{
'name': 'MainPolicy',
'type': 'main',
- 'annotations': {'platforms': ['win']}
+ 'supported_on': ['chrome.win:8-']
},
],
'placeholders': [],
@@ -115,7 +115,7 @@ MainPolicy_Explain="Description of main."'''
{
'name': 'StringPolicy',
'type': 'string',
- 'annotations': {'platforms': ['win']}
+ 'supported_on': ['chrome.win:8-']
},
],
'placeholders': [],
@@ -166,7 +166,7 @@ StringPolicy_Part="Caption of policy."
{'name': 'ProxyServerDisabled', 'value': '0'},
{'name': 'ProxyServerAutoDetect', 'value': '1'},
],
- 'annotations': {'platforms': ['win']}
+ 'supported_on': ['chrome.win:8-']
},
],
'placeholders': [],
@@ -223,7 +223,7 @@ ProxyServerAutoDetect_DropDown="Option2"
{
'name': 'ListPolicy',
'type': 'list',
- 'annotations': {'platforms': ['win']}
+ 'supported_on': ['chrome.win:8-']
},
],
'placeholders': [],
@@ -276,7 +276,7 @@ ListPolicy_Part="Value caption of list policy."
'policies': [{
'name': 'NonWinPolicy',
'type': 'list',
- 'annotations': {'platforms': ['linux', 'mac']}
+ 'supported_on': ['chrome.linux:8-', 'chrome.mac:8-']
}],
},
],
@@ -314,11 +314,11 @@ chromium="Chromium"
'policies': [{
'name': 'Policy1',
'type': 'list',
- 'annotations': {'platforms': ['win']}
+ 'supported_on': ['chrome.win:8-']
},{
'name': 'Policy2',
'type': 'string',
- 'annotations': {'platforms': ['win']}
+ 'supported_on': ['chrome.win:8-']
}],
},
],

Powered by Google App Engine