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

Unified Diff: base/android/jni_generator/jni_generator_tests.py

Issue 298973005: Updating JNIAdditionalImport to allow more than one import. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review Created 6 years, 7 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
Index: base/android/jni_generator/jni_generator_tests.py
diff --git a/base/android/jni_generator/jni_generator_tests.py b/base/android/jni_generator/jni_generator_tests.py
index ab566168c1e2e8dd14dd408e19605e794b9e9ea1..2e32b01319e362c25839895cf1c20e72e972570e 100755
--- a/base/android/jni_generator/jni_generator_tests.py
+++ b/base/android/jni_generator/jni_generator_tests.py
@@ -1046,6 +1046,19 @@ class Foo {
private static native void nativeDoSomething(Bar.Callback callback);
}
+
+ @JNIAdditionalImport({Bar2.class, Bar3.class})
bulach 2014/05/22 17:13:45 probably best to split into a separate file.. the
qsr 2014/05/23 08:11:38 Done.
+ class Foo2 {
+
+ @CalledByNative
+ private static void calledByNative(Bar2.Callback callback1,
+ Bar3.Callback callback2) {
+ }
+
+ private static native void nativeDoSomething(Bar2.Callback callback1,
+ Bar3.Callback callback2);
+ }
+
"""
jni_from_java = jni_generator.JNIFromJavaSource(test_data,
'org/chromium/foo/Foo',

Powered by Google App Engine
This is Rietveld 408576698