Index: base/android/jni_generator/testCalledByNatives.golden |
diff --git a/base/android/jni_generator/testCalledByNatives.golden b/base/android/jni_generator/testCalledByNatives.golden |
index 854275ccbf26d7fb10a1cff03c380126c5e19835..8dccc6dfa1b674cb8e07b817846372225f376ef6 100644 |
--- a/base/android/jni_generator/testCalledByNatives.golden |
+++ b/base/android/jni_generator/testCalledByNatives.golden |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -14,6 +14,8 @@ |
#include "base/android/jni_generator/jni_generator_helper.h" |
+#include "base/android/jni_int_wrapper.h" |
+ |
// Step 1: forward declarations. |
namespace { |
const char kTestJniClassPath[] = "org/chromium/TestJni"; |
@@ -29,7 +31,7 @@ jclass g_InfoBar_clazz = NULL; |
static base::subtle::AtomicWord g_TestJni_showConfirmInfoBar = 0; |
static base::android::ScopedJavaLocalRef<jobject> |
- Java_TestJni_showConfirmInfoBar(JNIEnv* env, jobject obj, jint |
+ Java_TestJni_showConfirmInfoBar(JNIEnv* env, jobject obj, jni_int_wrapper |
nativeInfoBar, |
jstring buttonOk, |
jstring buttonCancel, |
@@ -56,14 +58,15 @@ static base::android::ScopedJavaLocalRef<jobject> |
jobject ret = |
env->CallObjectMethod(obj, |
- method_id, nativeInfoBar, buttonOk, buttonCancel, title, icon); |
+ method_id, nativeInfoBar.asJint(), buttonOk, buttonCancel, title, |
+ icon); |
jni_generator::CheckException(env); |
return base::android::ScopedJavaLocalRef<jobject>(env, ret); |
} |
static base::subtle::AtomicWord g_TestJni_showAutoLoginInfoBar = 0; |
static base::android::ScopedJavaLocalRef<jobject> |
- Java_TestJni_showAutoLoginInfoBar(JNIEnv* env, jobject obj, jint |
+ Java_TestJni_showAutoLoginInfoBar(JNIEnv* env, jobject obj, jni_int_wrapper |
nativeInfoBar, |
jstring realm, |
jstring account, |
@@ -88,7 +91,7 @@ static base::android::ScopedJavaLocalRef<jobject> |
jobject ret = |
env->CallObjectMethod(obj, |
- method_id, nativeInfoBar, realm, account, args); |
+ method_id, nativeInfoBar.asJint(), realm, account, args); |
jni_generator::CheckException(env); |
return base::android::ScopedJavaLocalRef<jobject>(env, ret); |
} |
@@ -173,10 +176,10 @@ static base::android::ScopedJavaLocalRef<jobject> Java_TestJni_openUrl(JNIEnv* |
static base::subtle::AtomicWord g_TestJni_activateHardwareAcceleration = 0; |
static void Java_TestJni_activateHardwareAcceleration(JNIEnv* env, jobject obj, |
jboolean activated, |
- jint iPid, |
- jint iType, |
- jint iPrimaryID, |
- jint iSecondaryID) { |
+ jni_int_wrapper iPid, |
+ jni_int_wrapper iType, |
+ jni_int_wrapper iPrimaryID, |
+ jni_int_wrapper iSecondaryID) { |
/* Must call RegisterNativesImpl() */ |
CHECK_CLAZZ(env, obj, |
g_TestJni_clazz); |
@@ -197,13 +200,15 @@ static void Java_TestJni_activateHardwareAcceleration(JNIEnv* env, jobject obj, |
&g_TestJni_activateHardwareAcceleration); |
env->CallVoidMethod(obj, |
- method_id, activated, iPid, iType, iPrimaryID, iSecondaryID); |
+ method_id, activated, iPid.asJint(), iType.asJint(), |
+ iPrimaryID.asJint(), iSecondaryID.asJint()); |
jni_generator::CheckException(env); |
} |
static base::subtle::AtomicWord g_TestJni_uncheckedCall = 0; |
-static void Java_TestJni_uncheckedCall(JNIEnv* env, jobject obj, jint iParam) { |
+static void Java_TestJni_uncheckedCall(JNIEnv* env, jobject obj, jni_int_wrapper |
+ iParam) { |
/* Must call RegisterNativesImpl() */ |
CHECK_CLAZZ(env, obj, |
g_TestJni_clazz); |
@@ -220,7 +225,7 @@ static void Java_TestJni_uncheckedCall(JNIEnv* env, jobject obj, jint iParam) { |
&g_TestJni_uncheckedCall); |
env->CallVoidMethod(obj, |
- method_id, iParam); |
+ method_id, iParam.asJint()); |
} |