# Copyright 2019 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. import("//build/config/android/rules.gni") android_library("java") { sources = [ "android/java/src/org/chromium/chrome/browser/util/AndroidTaskUtils.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/FileSizeUtil.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", "android/java/src/org/chromium/chrome/browser/util/VoiceRecognitionUtil.java", ] deps = [ "//base:base_java", "//base:jni_java", "//components/browser_ui/util/android:java", "//components/embedder_support/android:util_java", "//content/public/android:content_java", "//third_party/android_deps:androidx_annotation_annotation_java", "//third_party/android_deps:androidx_core_core_java", "//ui/android:ui_full_java", "//url:gurl_java", ] annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ] } generate_jni("jni_headers") { sources = [ "android/java/src/org/chromium/chrome/browser/util/PlatformUtil.java" ] } android_library("javatests") { testonly = true sources = [ "android/java/src/org/chromium/chrome/browser/util/ChromeFileProviderTest.java", "android/java/src/org/chromium/chrome/browser/util/HashUtilTest.java", "android/java/src/org/chromium/chrome/browser/util/VoiceRecognitionUtilTest.java", ] deps = [ ":java", "//base:base_java", "//base:base_java_test_support", "//base/test:test_support_java", "//chrome/test/android:chrome_java_test_support", "//components/signin/core/browser/android:java", "//content/public/test/android:content_java_test_support", "//third_party/android_deps:androidx_test_runner_java", "//third_party/android_sdk:android_test_mock_java", "//third_party/android_support_test_runner:runner_java", "//third_party/junit", "//third_party/mockito:mockito_java", ] }