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

Unified Diff: base/android/jni_generator/testJNIInitNativeNameOption.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/testJNIInitNativeNameOption.golden
diff --git a/base/android/jni_generator/testJNIInitNativeNameOption.golden b/base/android/jni_generator/testJNIInitNativeNameOption.golden
index a0998daf26320cc97f11de8ea00d8507ff182f03..084f08d6eacd194315869de472be5742bfaade34 100644
--- a/base/android/jni_generator/testJNIInitNativeNameOption.golden
+++ b/base/android/jni_generator/testJNIInitNativeNameOption.golden
@@ -26,7 +26,9 @@ jclass g_Test_clazz = NULL;
} // namespace
// Step 2: method stubs.
-static jint Method(JNIEnv* env, jobject jcaller,
+static jint Java_org_chromium_example_jni_1generator_Test_nativeMethod(JNIEnv*
+ env,
+ jobject jcaller,
jlong nativeTest,
jint arg1) {
Test* native = reinterpret_cast<Test*>(nativeTest);
@@ -42,7 +44,9 @@ static const JNINativeMethod kMethodsTest[] = {
"J"
"I"
")"
-"I", reinterpret_cast<void*>(Method) },
+"I",
+ reinterpret_cast<void*>(Java_org_chromium_example_jni_1generator_Test_nativeMethod)
+ },
};
static bool RegisterNativesImpl(JNIEnv* env, jclass clazz) {
« no previous file with comments | « base/android/jni_generator/testInnerClassNativesMultiple.golden ('k') | base/android/jni_generator/testJarJarRemapping.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698