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

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

Issue 1279163006: jni_generator: Wrap all native methods in stubs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove separate forward declaration section entirely Created 5 years, 4 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/testInnerClassNativesMultiple.golden
diff --git a/base/android/jni_generator/testInnerClassNativesMultiple.golden b/base/android/jni_generator/testInnerClassNativesMultiple.golden
index 42643ae32c92ae71890c0ca9820cbf5f22c85628..5f543641aacb9fa29979ca55fd2b545e0e0614db 100644
--- a/base/android/jni_generator/testInnerClassNativesMultiple.golden
+++ b/base/android/jni_generator/testInnerClassNativesMultiple.golden
@@ -28,11 +28,21 @@ jclass g_TestJni_clazz = NULL;
} // namespace
+// Step 2: method stubs.
+
static jint Init(JNIEnv* env, jobject jcaller);
+static jint Java_org_chromium_TestJni_00024MyInnerClass_nativeInit(JNIEnv* env,
+ jobject jcaller) {
+ return Init(env, jcaller);
+}
+
static jint Init(JNIEnv* env, jobject jcaller);
-// Step 2: method stubs.
+static jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(JNIEnv*
+ env, jobject jcaller) {
+ return Init(env, jcaller);
+}
// Step 3: RegisterNatives.
@@ -40,14 +50,18 @@ static const JNINativeMethod kMethodsMyOtherInnerClass[] = {
{ "nativeInit",
"("
")"
-"I", reinterpret_cast<void*>(Init) },
+"I",
+ reinterpret_cast<void*>(Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit)
+ },
};
static const JNINativeMethod kMethodsMyInnerClass[] = {
{ "nativeInit",
"("
")"
-"I", reinterpret_cast<void*>(Init) },
+"I",
+ reinterpret_cast<void*>(Java_org_chromium_TestJni_00024MyInnerClass_nativeInit)
+ },
};
static bool RegisterNativesImpl(JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698