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

Unified Diff: base/android/jni_generator/testEagerCalledByNativesOption.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/testEagerCalledByNativesOption.golden
diff --git a/base/android/jni_generator/testEagerCalledByNativesOption.golden b/base/android/jni_generator/testEagerCalledByNativesOption.golden
index 19108bfe68309ab7704c2f6321f183c90bd30eee..52ff798e90d9b4c81a479b3e324c7964a9c2fe4f 100644
--- a/base/android/jni_generator/testEagerCalledByNativesOption.golden
+++ b/base/android/jni_generator/testEagerCalledByNativesOption.golden
@@ -29,7 +29,9 @@ jmethodID g_Test_testStaticMethodWithNoParam = 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);
@@ -75,7 +77,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/jni_generator.py ('k') | base/android/jni_generator/testInnerClassNatives.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698