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

Unified Diff: base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.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/testInnerClassNativesBothInnerAndOuter.golden
diff --git a/base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden b/base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden
index c8d4b3cdd4cc5b55434c849e91581de867ee37d8..a9e645cc41b8c861b227415a67c54c12c546f3e6 100644
--- a/base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden
+++ b/base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden
@@ -27,11 +27,20 @@ jclass g_TestJni_clazz = NULL;
} // namespace
+// Step 2: method stubs.
+
static jint Init(JNIEnv* env, jobject jcaller);
+static jint Java_org_chromium_TestJni_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.
@@ -39,14 +48,16 @@ static const JNINativeMethod kMethodsMyOtherInnerClass[] = {
{ "nativeInit",
"("
")"
-"I", reinterpret_cast<void*>(Init) },
+"I",
+ reinterpret_cast<void*>(Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit)
+ },
};
static const JNINativeMethod kMethodsTestJni[] = {
{ "nativeInit",
"("
")"
-"I", reinterpret_cast<void*>(Init) },
+"I", reinterpret_cast<void*>(Java_org_chromium_TestJni_nativeInit) },
};
static bool RegisterNativesImpl(JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698