blob: 3331f0d8f455b0560e00b6ac113865f1c1e3480a [file] [log] [blame]
Tommy Nyquist46725ca2024-01-10 23:38:021# 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
5if (is_android) {
6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni")
8 import("//third_party/jni_zero/jni_zero.gni")
9}
10
11if (is_android) {
12 android_library("factory_java") {
13 srcjar_deps = [ ":jni_headers" ]
14 sources = [ "android/java/src/org/chromium/chrome/browser/data_sharing/DataSharingServiceFactory.java" ]
15
16 deps = [
17 "//base:base_java",
18 "//build/android:build_java",
19 "//chrome/browser/profiles/android:java",
20 "//components/data_sharing/public:public_java",
21 "//third_party/androidx:androidx_annotation_annotation_java",
22 "//third_party/jni_zero:jni_zero_java",
23 ]
24 }
25
26 android_library("javatests") {
27 testonly = true
28
29 sources = [ "android/java/src/org/chromium/chrome/browser/data_sharing/DataSharingServiceFactoryTest.java" ]
30 deps = [
31 "//base:base_java",
32 "//base:base_java_test_support",
33 "//chrome/browser/data_sharing:factory_java",
34 "//chrome/browser/flags:java",
35 "//chrome/browser/profiles/android:java",
36 "//chrome/test/android:chrome_java_integration_test_support",
37 "//components/data_sharing/public:public_java",
38 "//third_party/androidx:androidx_test_runner_java",
39 "//third_party/hamcrest:hamcrest_core_java",
40 "//third_party/hamcrest:hamcrest_library_java",
41 "//third_party/junit:junit",
42 ]
43 }
44
45 generate_jni("jni_headers") {
46 sources = [ "android/java/src/org/chromium/chrome/browser/data_sharing/DataSharingServiceFactory.java" ]
47 }
48}