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

Unified Diff: tools/json_schema_compiler/cpp_type_generator_test.py

Issue 9456007: Add wider support to json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reupload Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/json_schema_compiler/cpp_type_generator.py ('k') | tools/json_schema_compiler/cpp_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/cpp_type_generator_test.py
diff --git a/tools/json_schema_compiler/cpp_type_generator_test.py b/tools/json_schema_compiler/cpp_type_generator_test.py
index d9d1082b51ea766a0035f49cc21c974c17e8cfbe..81ee04de136b0658b1cb618a7d4b130a1a0c96fe 100644
--- a/tools/json_schema_compiler/cpp_type_generator_test.py
+++ b/tools/json_schema_compiler/cpp_type_generator_test.py
@@ -62,11 +62,11 @@ class CppTypeGeneratorTest(unittest.TestCase):
manager = CppTypeGenerator('', self.tabs, 'tabs_api')
prop = self.tabs.functions['move'].params[0]
self.assertEquals('TAB_IDS_ARRAY',
- manager.GetChoiceEnumValue(prop, model.PropertyType.ARRAY))
+ manager.GetEnumValue(prop, model.PropertyType.ARRAY))
self.assertEquals('TAB_IDS_INTEGER',
- manager.GetChoiceEnumValue(prop, model.PropertyType.INTEGER))
+ manager.GetEnumValue(prop, model.PropertyType.INTEGER))
self.assertEquals('TabIdsType',
- manager.GetChoicesEnumType(prop))
+ manager.GetEnumType(prop))
def testGetTypeSimple(self):
manager = CppTypeGenerator('', self.tabs, 'tabs_api')
« no previous file with comments | « tools/json_schema_compiler/cpp_type_generator.py ('k') | tools/json_schema_compiler/cpp_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698