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

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

Issue 132013003: Android: moves jni_generator samples to use long for JNI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With fixes Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/jni_generator/jni_generator.gyp ('k') | base/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: 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 6f1484c38e14843f4bb413f1f1e85a6fe2f1f3f7..3b971059584e8d5639ce788a15db12213c4c94a5 100755
--- a/base/android/jni_generator/jni_generator_tests.py
+++ b/base/android/jni_generator/jni_generator_tests.py
@@ -37,7 +37,7 @@ class TestOptions(object):
self.script_name = SCRIPT_NAME
self.includes = INCLUDES
self.pure_native_methods = False
- self.ptr_type = 'int'
+ self.ptr_type = 'long'
self.jni_init_native_name = None
self.eager_called_by_natives = False
@@ -949,10 +949,10 @@ class Foo {
package org.chromium.example.jni_generator;
/** The pointer to the native Test. */
- int nativeTest;
+ long nativeTest;
class Test {
- private static native int nativeMethod(int nativeTest, int arg1);
+ private static native long nativeMethod(long nativeTest, int arg1);
}
"""
options = TestOptions()
@@ -966,11 +966,11 @@ class Foo {
package org.chromium.example.jni_generator;
/** The pointer to the native Test. */
- int nativeTest;
+ long nativeTest;
class Test {
private static native boolean initNativeClass();
- private static native int nativeMethod(int nativeTest, int arg1);
+ private static native int nativeMethod(long nativeTest, int arg1);
}
"""
options = TestOptions()
@@ -984,11 +984,11 @@ class Foo {
package org.chromium.example.jni_generator;
/** The pointer to the native Test. */
- int nativeTest;
+ long nativeTest;
class Test {
private static native boolean initNativeClass();
- private static native int nativeMethod(int nativeTest, int arg1);
+ private static native int nativeMethod(long nativeTest, int arg1);
@CalledByNative
private void testMethodWithParam(int iParam);
@CalledByNative
« no previous file with comments | « base/android/jni_generator/jni_generator.gyp ('k') | base/android/jni_generator/sample_for_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698