xref: /aosp_15_r20/external/cronet/base/android/robolectric_jni_onload.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 #include <jni.h>
5 
6 #include "base/android/base_jni_onload.h"
7 #include "base/android/jni_android.h"
8 
JNI_OnLoad(JavaVM * vm,void * reserved)9 extern "C" JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
10   base::android::InitVM(vm);
11   base::android::OnJNIOnLoadInit();
12   return JNI_VERSION_1_4;
13 }
14