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. 14package { 15 default_applicable_licenses: ["Android-Apache-2.0"], 16} 17 18// Source for all tests - ideally should be used by a host-side 19// project to run all of them (without "host-side" dependencies like 20// tradefed), although currently is running on device 21// TODO(b/347083260): create a AdServicesSharedLibrariesSidelessTests 22// project, then don't test them on device anymore. 23filegroup { 24 name: "adservices-shared-sideless-tests-sources", 25 srcs: [ 26 "java/**/*.java", 27 ], 28 visibility: [ 29 "//packages/modules/AdServices/shared/tests:__subpackages__", 30 ], 31} 32 33// Source for tests that can run by themselves in a side-less project, 34// but could also be extended on device-side or host-side to provide 35// tests for the device-side / host-side counterpart (typically rules) 36// TODO(b/347083260): ideally it should be all of them (i.e, we should 37// get rid of this and use "adservices-shared-sideless-tests-sources"), 38// but there are some dependencies that are not available on host-side 39// (like SyncCallback) 40filegroup { 41 name: "adservices-shared-sideless-plus-tests-sources", 42 srcs: [ 43 "java/com/android/adservices/shared/testing/flags/AbstractFlagsPreparerClassRuleTest.java", 44 "java/com/android/adservices/shared/testing/AbstractRuleTest.java", 45 "java/com/android/adservices/shared/testing/AbstractSdkLevelSupportedRuleTest.java", 46 // NOTE: ideally AbstractSdkLevelSupportedRuleTestCase should be on meta_testing for consistency, 47 // but it has too many other dependencies (as it was spun from AbstractSdkLevelSupportedRuleTest) 48 "java/com/android/adservices/shared/testing/AbstractSdkLevelSupportedRuleTestCase.java", 49 ], 50 visibility: [ 51 "//packages/modules/AdServices/shared/tests:__subpackages__", 52 ], 53} 54