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

Unified Diff: base/android/jni_generator/testInnerClassNatives.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/testInnerClassNatives.golden
diff --git a/base/android/jni_generator/testInnerClassNatives.golden b/base/android/jni_generator/testInnerClassNatives.golden
index 5a525ef85e1d76b24717250a49a6d53d6524aa13..d6676c4a790a81fb3ada873a85110f7e4796cfe6 100644
--- a/base/android/jni_generator/testInnerClassNatives.golden
+++ b/base/android/jni_generator/testInnerClassNatives.golden
@@ -26,9 +26,14 @@ jclass g_TestJni_clazz = NULL;
} // namespace
+// Step 2: method stubs.
+
static jint Init(JNIEnv* env, jobject jcaller);
-// Step 2: method stubs.
+static jint Java_org_chromium_TestJni_00024MyInnerClass_nativeInit(JNIEnv* env,
+ jobject jcaller) {
+ return Init(env, jcaller);
+}
// Step 3: RegisterNatives.
@@ -36,7 +41,9 @@ 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