1// Copyright (C) 2020 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_team: "trendy_team_framework_android_packages", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_test_host { 21 name: "CtsInstallHostTestCases", 22 defaults: ["cts_defaults"], 23 srcs: ["src/**/*.java"], 24 libs: [ 25 "compatibility-host-util", 26 "cts-tradefed", 27 "cts-shim-host-lib", 28 "tradefed", 29 "truth", 30 "hamcrest", 31 "hamcrest-library", 32 ], 33 data: [ 34 ":InstallTest", 35 ], 36 test_suites: [ 37 "cts", 38 "general-tests", 39 ], 40} 41 42android_test_helper_app { 43 name: "InstallTest", 44 srcs: [ 45 "app/src/**/*.java", 46 "src/android/cts/install/*.java", 47 ], 48 manifest: "app/AndroidManifest.xml", 49 static_libs: [ 50 "androidx.test.runner", 51 "androidx.test.core", 52 "truth", 53 "cts-install-lib", 54 "cts-rollback-lib", 55 ], 56 java_resources: [ 57 ":StagedInstallTestApexV1", 58 ":StagedInstallTestApexV2", 59 ":StagedInstallTestApexV3", 60 ], 61 sdk_version: "test_current", 62 test_suites: ["device-tests"], 63} 64