• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2023 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 #include "url/android/gurl_test_init.h"
9 
JNI_OnLoad(JavaVM * vm,void * reserved)10 extern "C" JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
11   base::android::InitVM(vm);
12   base::android::OnJNIOnLoadInit();
13   url::RegisterSchemesForRobolectric();
14   return JNI_VERSION_1_4;
15 }
16