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..d4e6c9c583e12c8cac7536a78d07854c5eedb624 |
--- /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() |