| # Copyright 2024 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| if (is_android) { |
| import("//build/config/android/config.gni") |
| import("//build/config/android/rules.gni") |
| import("//third_party/jni_zero/jni_zero.gni") |
| } |
| |
| if (is_android) { |
| android_library("factory_java") { |
| srcjar_deps = [ ":jni_headers" ] |
| sources = [ "android/java/src/org/chromium/chrome/browser/data_sharing/DataSharingServiceFactory.java" ] |
| |
| deps = [ |
| "//base:base_java", |
| "//build/android:build_java", |
| "//chrome/browser/profiles/android:java", |
| "//components/data_sharing/public:public_java", |
| "//third_party/androidx:androidx_annotation_annotation_java", |
| "//third_party/jni_zero:jni_zero_java", |
| ] |
| } |
| |
| android_library("javatests") { |
| testonly = true |
| |
| sources = [ "android/java/src/org/chromium/chrome/browser/data_sharing/DataSharingServiceFactoryTest.java" ] |
| deps = [ |
| "//base:base_java", |
| "//base:base_java_test_support", |
| "//chrome/browser/data_sharing:factory_java", |
| "//chrome/browser/flags:java", |
| "//chrome/browser/profiles/android:java", |
| "//chrome/test/android:chrome_java_integration_test_support", |
| "//components/data_sharing/public:public_java", |
| "//third_party/androidx:androidx_test_runner_java", |
| "//third_party/hamcrest:hamcrest_core_java", |
| "//third_party/hamcrest:hamcrest_library_java", |
| "//third_party/junit:junit", |
| ] |
| } |
| |
| generate_jni("jni_headers") { |
| sources = [ "android/java/src/org/chromium/chrome/browser/data_sharing/DataSharingServiceFactory.java" ] |
| } |
| } |