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

Side by Side Diff: base/android/jni_generator/jni_generator_tests.py

Issue 11819002: Android: fixes missing semi-colon in inner classes for jni_generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Tests for jni_generator.py. 6 """Tests for jni_generator.py.
7 7
8 This test suite contains various tests for the JNI generator. 8 This test suite contains various tests for the JNI generator.
9 It exercises the low-level parser all the way up to the 9 It exercises the low-level parser all the way up to the
10 code generator and ensures the output matches a golden 10 code generator and ensures the output matches a golden
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 'org/chromium/content/app/Foo') 1905 'org/chromium/content/app/Foo')
1906 jni_generator.JniParams.ExtractImportsAndInnerClasses(import_header) 1906 jni_generator.JniParams.ExtractImportsAndInnerClasses(import_header)
1907 self.assertTrue('Lorg/chromium/content/common/ISandboxedProcessService' in 1907 self.assertTrue('Lorg/chromium/content/common/ISandboxedProcessService' in
1908 jni_generator.JniParams._imports) 1908 jni_generator.JniParams._imports)
1909 self.assertTrue('Lorg/chromium/Bar/Zoo' in 1909 self.assertTrue('Lorg/chromium/Bar/Zoo' in
1910 jni_generator.JniParams._imports) 1910 jni_generator.JniParams._imports)
1911 self.assertTrue('Lorg/chromium/content/app/Foo$BookmarkNode' in 1911 self.assertTrue('Lorg/chromium/content/app/Foo$BookmarkNode' in
1912 jni_generator.JniParams._inner_classes) 1912 jni_generator.JniParams._inner_classes)
1913 self.assertTrue('Lorg/chromium/content/app/Foo$PasswordListObserver' in 1913 self.assertTrue('Lorg/chromium/content/app/Foo$PasswordListObserver' in
1914 jni_generator.JniParams._inner_classes) 1914 jni_generator.JniParams._inner_classes)
1915 self.assertEquals('Lorg/chromium/content/app/ContentMain$Inner', 1915 self.assertEquals('Lorg/chromium/content/app/ContentMain$Inner;',
1916 jni_generator.JniParams.JavaToJni('ContentMain.Inner')) 1916 jni_generator.JniParams.JavaToJni('ContentMain.Inner'))
1917 self.assertRaises(SyntaxError, 1917 self.assertRaises(SyntaxError,
1918 jni_generator.JniParams.JavaToJni, 1918 jni_generator.JniParams.JavaToJni,
1919 'AnException') 1919 'AnException')
1920 1920
1921 1921
1922 if __name__ == '__main__': 1922 if __name__ == '__main__':
1923 unittest.main() 1923 unittest.main()
OLDNEW
« no previous file with comments | « base/android/jni_generator/jni_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698