1// Copyright (C) 2024 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19// Java classes that are used by both device-side and host-side test libraries 20// NOTE: cannot create a proper "library", as it would be "java_library" on 21// device-side and "java_library_host" on host-side. Hence, projects including 22// filegroup should add the following dependencies 23// "error_prone_annotations", // @FormatMethod / @FormatString 24// "junit", 25// - device: 26// "guava", // @VisibleForTesting 27// - host 28// "guava-android-host", // @VisibleForTesting 29filegroup { 30 name: "adservices-shared-sideless-testing-sources", 31 srcs: [ 32 "java/com/android/adservices/shared/testing/**/*.java", 33 ], 34 visibility: [ 35 "//packages/modules/AdServices/shared/libraries:__subpackages__", 36 ], 37} 38 39filegroup { 40 name: "adservices-shared-sideless-testing-TestNamer-sources", 41 srcs: [ 42 "java/com/android/adservices/shared/testing/TestNamer.java", 43 ], 44 visibility: [ 45 "//packages/modules/AdServices/shared/libraries:__subpackages__", 46 ], 47} 48 49// Shared test classes used to test shared test classes - Malkovich! 50filegroup { 51 name: "adservices-shared-sideless-meta-testing-sources", 52 srcs: [ 53 "java/com/android/adservices/shared/meta_testing/**/*.java", 54 ], 55 visibility: [ 56 "//packages/modules/AdServices/shared/tests:__subpackages__", 57 // Explicitly add each package below - don't use __subpackages__ 58 "//packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility", 59 ], 60} 61