1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef JNI_ZERO_BENCHMARK_H_ 6 #define JNI_ZERO_BENCHMARK_H_ 7 8 #include "third_party/jni_zero/jni_zero.h" 9 10 template <> 11 std::int32_t jni_zero::FromJniType<std::int32_t>( 12 JNIEnv* env, 13 const jni_zero::JavaRef<jobject>& j_integer); 14 15 template <> 16 jni_zero::ScopedJavaLocalRef<jobject> jni_zero::ToJniType<std::int32_t>( 17 JNIEnv* env, 18 const std::int32_t& input); 19 20 #endif // JNI_ZERO_BENCHMARK_H_ 21