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

Unified Diff: android/jni_generator/jni_generator_tests.py

Issue 2045303002: Update to Chromium //base at Chromium commit 3e81715e6d3a4324362635aea46ce1f1a163cca1. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/base@master
Patch Set: Created 4 years, 6 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 | « android/jni_generator/jni_generator.py ('k') | android/jni_generator/sample_for_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android/jni_generator/jni_generator_tests.py
diff --git a/android/jni_generator/jni_generator_tests.py b/android/jni_generator/jni_generator_tests.py
index 0350b0e91a01c08aacadc7f334ea957fa16622e4..22e54cf78e86ade8fd60dba871be8bb52cd467f9 100755
--- a/android/jni_generator/jni_generator_tests.py
+++ b/android/jni_generator/jni_generator_tests.py
@@ -149,6 +149,7 @@ class TestGenerator(unittest.TestCase):
private native void nativeGotOrientation(
int nativeDataFetcherImplAndroid,
double alpha, double beta, double gamma);
+ private static native Throwable nativeMessWithJavaException(Throwable e);
"""
jni_generator.JniParams.SetFullyQualifiedClass(
'org/chromium/example/jni_generator/SampleForTests')
@@ -272,6 +273,11 @@ class TestGenerator(unittest.TestCase):
java_class_name=None,
type='method',
p0_type='content::DataFetcherImplAndroid'),
+ NativeMethod(return_type='Throwable', static=True,
+ name='MessWithJavaException',
+ params=[Param(datatype='Throwable', name='e')],
+ java_class_name=None,
+ type='function')
]
self.assertListEquals(golden_natives, natives)
h = jni_generator.InlHeaderFileGenerator('', 'org/chromium/TestJni',
« no previous file with comments | « android/jni_generator/jni_generator.py ('k') | android/jni_generator/sample_for_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698