# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//third_party/jni_zero/jni_zero.gni")
android_library("java") {
srcjar_deps = [ ":jni_headers" ]
sources = [
"android/java/src/org/chromium/chrome/browser/util/AfterStartupTaskUtils.java",
"android/java/src/org/chromium/chrome/browser/util/AndroidTaskUtils.java",
"android/java/src/org/chromium/chrome/browser/util/BrowserUiUtils.java",
"android/java/src/org/chromium/chrome/browser/util/ChromeAccessibilityUtil.java",
"android/java/src/org/chromium/chrome/browser/util/ChromeFileProvider.java",
"android/java/src/org/chromium/chrome/browser/util/HashUtil.java",
"android/java/src/org/chromium/chrome/browser/util/KeyNavigationUtil.java",
"android/java/src/org/chromium/chrome/browser/util/PlatformUtil.java",
]
deps = [
"//base:base_java",
"//build/android:build_java",
"//components/browser_ui/util/android:java",
"//components/embedder_support/android:util_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/accessibility:ax_base_java",
"//ui/android:ui_full_java",
"//url:gurl_java",
]
}
generate_jni("jni_headers") {
sources = [
"android/java/src/org/chromium/chrome/browser/util/AfterStartupTaskUtils.java",
"android/java/src/org/chromium/chrome/browser/util/PlatformUtil.java",
]
}
robolectric_library("junit_tests") {
sources = [
"android/java/src/org/chromium/chrome/browser/util/ChromeFileProviderTest.java",
"android/java/src/org/chromium/chrome/browser/util/HashUtilTest.java",
]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//base/test:test_support_java",
"//chrome/test/android:chrome_java_unit_test_support",
"//content/public/test/android:content_java_test_support",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
]
}