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

Unified Diff: base/android/jni_generator/testPureNativeMethodsOption.golden

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/testJNIInitNativeNameOption.golden ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_generator/testPureNativeMethodsOption.golden
diff --git a/base/android/jni_generator/testPureNativeMethodsOption.golden b/base/android/jni_generator/testPureNativeMethodsOption.golden
index e876ab1dccd024c11dc8886aa739ba8267716366..e7f8d53dd4d792531b0b69537954d95969dfce7e 100644
--- a/base/android/jni_generator/testPureNativeMethodsOption.golden
+++ b/base/android/jni_generator/testPureNativeMethodsOption.golden
@@ -23,8 +23,8 @@ jclass g_Test_clazz = NULL;
} // namespace
// Step 2: method stubs.
-static jint Method(JNIEnv* env, jobject jcaller,
- jint nativeTest,
+static jlong Method(JNIEnv* env, jobject jcaller,
+ jlong nativeTest,
jint arg1) {
Test* native = reinterpret_cast<Test*>(nativeTest);
CHECK_NATIVE_PTR(env, jcaller, native, "Method", 0);
@@ -36,10 +36,10 @@ static jint Method(JNIEnv* env, jobject jcaller,
static const JNINativeMethod kMethodsTest[] = {
{ "nativeMethod",
"("
-"I"
+"J"
"I"
")"
-"I", reinterpret_cast<void*>(Method) },
+"J", reinterpret_cast<void*>(Method) },
};
static bool RegisterNativesImpl(JNIEnv* env) {
« no previous file with comments | « base/android/jni_generator/testJNIInitNativeNameOption.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698