Chromium Code Reviews| 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..8f63592c2a1211c9f1def5279661a6321639a8b5 |
| --- /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 unittest |
| +import cpp_util |
| + |
| +class TestCppName(unittest.TestCase): |
|
not at google - send to devlin
2012/01/17 05:42:32
class CppUtilTest
|
| + def test_cpp_name(self): |
| + self.assertEquals(cpp_util.cpp_name('permissions'), 'Permissions') |
| + self.assertEquals(cpp_util.cpp_name('updateAllTheThings'), |
| + 'UpdateAllTheThings') |
| + self.assertEquals(cpp_util.cpp_name('aa.bb.cc'), 'Aa_Bb_Cc') |
| + |
| +if __name__ == '__main__': |
| + unittest.main() |