xref: /aosp_15_r20/external/cronet/components/prefs/android/BUILD.gn (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2020 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
5import("//build/config/android/rules.gni")
6import("//third_party/jni_zero/jni_zero.gni")
7
8generate_jni("jni_headers") {
9  sources = [ "java/src/org/chromium/components/prefs/PrefService.java" ]
10}
11
12android_library("java") {
13  srcjar_deps = [ ":jni_headers" ]
14  sources = [ "java/src/org/chromium/components/prefs/PrefService.java" ]
15  deps = [
16    "//build/android:build_java",
17    "//third_party/androidx:androidx_annotation_annotation_java",
18    "//third_party/jni_zero:jni_zero_java",
19  ]
20}
21
22robolectric_library("junit") {
23  sources = [ "java/src/org/chromium/components/prefs/PrefServiceTest.java" ]
24  deps = [
25    ":java",
26    "//base:base_java_test_support",
27    "//base:base_junit_test_support",
28    "//base/test:test_support_java",
29    "//third_party/jni_zero:jni_zero_java",
30    "//third_party/junit",
31    "//third_party/mockito:mockito_java",
32  ]
33}
34