| # Copyright 2020 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") |
| |
| generate_jni("jni_headers") { |
| sources = [ "java/src/org/chromium/components/prefs/PrefService.java" ] |
| } |
| |
| android_library("java") { |
| sources = [ "java/src/org/chromium/components/prefs/PrefService.java" ] |
| deps = [ |
| "//base:base_java", |
| "//third_party/androidx:androidx_annotation_annotation_java", |
| ] |
| annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ] |
| } |
| |
| java_library("junit") { |
| # Skip platform checks since Robolectric depends on requires_android targets. |
| bypass_platform_checks = true |
| testonly = true |
| sources = [ "java/src/org/chromium/components/prefs/PrefServiceTest.java" ] |
| deps = [ |
| ":java", |
| "//base:base_java", |
| "//base:base_java_test_support", |
| "//base:base_junit_test_support", |
| "//base/test:test_support_java", |
| "//third_party/android_deps:robolectric_all_java", |
| "//third_party/junit", |
| "//third_party/mockito:mockito_java", |
| ] |
| } |