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 default_team: "trendy_team_android_resources", 18} 19 20java_test_host { 21 name: "CtsResourcesHostTestCases", 22 defaults: ["cts_defaults"], 23 srcs: ["src/**/RegisterResourcePathsHostTests.java"], 24 libs: [ 25 "cts-tradefed", 26 "tradefed", 27 "compatibility-host-util", 28 ], 29 static_libs: [ 30 "compatibility-host-util-axt", 31 "flag-junit-host", 32 "android.content.res.flags-aconfig-java-host", 33 ], 34 // Tag this module as a cts test artifact 35 test_suites: [ 36 "cts", 37 "general-tests", 38 ], 39 // All APKs required by the tests 40 device_common_data: [ 41 ":CtsRegisterResourcePathsTestApp1", 42 ":CtsRegisterResourcePathsTestApp2", 43 ], 44 per_testcase_directory: true, 45 test_config: "AndroidTest.xml", 46} 47 48java_test_host { 49 name: "CtsResourcesConfigChangeTestCases", 50 defaults: ["cts_defaults"], 51 srcs: ["src/**/CtsHandleConfigChangeHostTests.java"], 52 libs: [ 53 "cts-tradefed", 54 "tradefed", 55 "compatibility-host-util", 56 ], 57 static_libs: [ 58 "compatibility-host-util-axt", 59 "flag-junit-host", 60 "android.content.res.flags-aconfig-java-host", 61 ], 62 // Tag this module as a cts test artifact 63 test_suites: [ 64 "cts", 65 "general-tests", 66 ], 67 // All APKs required by the tests 68 device_common_data: [ 69 ":CtsOverlayResApp", 70 ":CtsOverlayResRRO", 71 ":CtsOverlayLayoutRRO", 72 ":CtsOverlayFrameworkResRRO", 73 ":CtsOverlayResApp2", 74 ":CtsOverlayResRRO2", 75 ], 76 per_testcase_directory: true, 77 test_config: "ConfigChangeTests.xml", 78} 79