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

Side by Side 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: more rework 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import unittest
6 import cpp_util
7
8 class TestCppName(unittest.TestCase):
not at google - send to devlin 2012/01/17 05:42:32 class CppUtilTest
9 def test_cpp_name(self):
10 self.assertEquals(cpp_util.cpp_name('permissions'), 'Permissions')
11 self.assertEquals(cpp_util.cpp_name('updateAllTheThings'),
12 'UpdateAllTheThings')
13 self.assertEquals(cpp_util.cpp_name('aa.bb.cc'), 'Aa_Bb_Cc')
14
15 if __name__ == '__main__':
16 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698