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

Unified Diff: tools/json_schema_compiler/cpp_util_test.py

Issue 9114036: Code generation for extensions api (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: windows path fix Created 8 years, 11 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_util.py ('k') | tools/json_schema_compiler/h_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/cpp_util_test.py
diff --git a/tools/json_schema_compiler/cpp_util_test.py b/tools/json_schema_compiler/cpp_util_test.py
new file mode 100644
index 0000000000000000000000000000000000000000..56f83d377dd1d7598ecb896caac7c7da87c83dae
--- /dev/null
+++ b/tools/json_schema_compiler/cpp_util_test.py
@@ -0,0 +1,16 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import cpp_util
+import unittest
+
+class CppUtilTest(unittest.TestCase):
+ def testCppName(self):
+ self.assertEquals('Permissions', cpp_util.CppName('permissions'))
+ self.assertEquals('UpdateAllTheThings',
+ cpp_util.CppName('updateAllTheThings'))
+ self.assertEquals('Aa_Bb_Cc', cpp_util.CppName('aa.bb.cc'))
+
+if __name__ == '__main__':
+ unittest.main()
« no previous file with comments | « tools/json_schema_compiler/cpp_util.py ('k') | tools/json_schema_compiler/h_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698