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

Unified Diff: base/android/jni_generator/testCalledByNatives.golden

Issue 2386713002: Ignore return type annotations in @CalledByNative methods. (Closed)
Patch Set: Make regex normal Created 4 years, 3 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
« no previous file with comments | « base/android/jni_generator/jni_generator_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_generator/testCalledByNatives.golden
diff --git a/base/android/jni_generator/testCalledByNatives.golden b/base/android/jni_generator/testCalledByNatives.golden
index b4ebe1d27d75e33d2326aad0e392be9a25bc8886..4044936b6a561931a10572b5e6b8222cf8528bbd 100644
--- a/base/android/jni_generator/testCalledByNatives.golden
+++ b/base/android/jni_generator/testCalledByNatives.golden
@@ -205,6 +205,29 @@ static void Java_TestJni_activateHardwareAcceleration(JNIEnv* env, const
}
+static base::subtle::AtomicWord g_TestJni_updateStatus = 0;
+static jint Java_TestJni_updateStatus(JNIEnv* env, JniIntWrapper status) {
+ CHECK_CLAZZ(env, TestJni_clazz(env),
+ TestJni_clazz(env), 0);
+ jmethodID method_id =
+ base::android::MethodID::LazyGet<
+ base::android::MethodID::TYPE_STATIC>(
+ env, TestJni_clazz(env),
+ "updateStatus",
+
+"("
+"I"
+")"
+"I",
+ &g_TestJni_updateStatus);
+
+ jint ret =
+ env->CallStaticIntMethod(TestJni_clazz(env),
+ method_id, as_jint(status));
+ jni_generator::CheckException(env);
+ return ret;
+}
+
static base::subtle::AtomicWord g_TestJni_uncheckedCall = 0;
static void Java_TestJni_uncheckedCall(JNIEnv* env, const
base::android::JavaRefOrBare<jobject>& obj, JniIntWrapper iParam) {
« no previous file with comments | « base/android/jni_generator/jni_generator_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698