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

Unified Diff: base/android/jni_generator/testPureNativeMethodsOption.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/testPureNativeMethodsOption.golden
diff --git a/base/android/jni_generator/testPureNativeMethodsOption.golden b/base/android/jni_generator/testPureNativeMethodsOption.golden
index ad63cca6269d3460780faf98f7109339f796440e..52e03ccd2bae5204ee77d5be1dfff06915733436 100644
--- a/base/android/jni_generator/testPureNativeMethodsOption.golden
+++ b/base/android/jni_generator/testPureNativeMethodsOption.golden
@@ -26,7 +26,9 @@ jclass g_Test_clazz = NULL;
} // namespace
// Step 2: method stubs.
-static jlong Method(JNIEnv* env, jobject jcaller,
+static jlong 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"
")"
-"J", reinterpret_cast<void*>(Method) },
+"J",
+ reinterpret_cast<void*>(Java_org_chromium_example_jni_1generator_Test_nativeMethod)
+ },
};
static bool RegisterNativesImpl(JNIEnv* env) {
« no previous file with comments | « base/android/jni_generator/testNativesLong.golden ('k') | base/android/jni_generator/testSingleJNIAdditionalImport.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698