Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 1 | // Copyright (C) 2009 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 | |
Bob Badour | e37c32e | 2021-02-12 19:42:55 -0800 | [diff] [blame^] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 19 | java_test_host { |
| 20 | name: "CtsAppSecurityHostTestCases", |
| 21 | defaults: ["cts_defaults"], |
| 22 | |
| 23 | // Only compile source java files in this apk. |
Winson | 9bb07b8 | 2020-04-27 17:14:14 -0700 | [diff] [blame] | 24 | srcs: ["src/**/*.java", "src/**/*.kt"], |
Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 25 | |
| 26 | libs: [ |
| 27 | "cts-tradefed", |
| 28 | "tradefed", |
| 29 | "compatibility-host-util", |
| 30 | "truth-prebuilt", |
| 31 | "hamcrest-library", |
| 32 | ], |
| 33 | |
Winson | 9bb07b8 | 2020-04-27 17:14:14 -0700 | [diff] [blame] | 34 | static_libs: [ |
| 35 | "CompatChangeGatingTestBase", |
| 36 | "CtsPkgInstallerConstants", |
| 37 | "cts-host-utils", |
| 38 | ], |
Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 39 | |
| 40 | java_resource_dirs: ["res"], |
| 41 | |
| 42 | // tag this module as a cts test artifact |
| 43 | test_suites: [ |
| 44 | "cts", |
Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 45 | "general-tests", |
Kimberly Kreider | 4f5aca1 | 2020-12-15 10:12:04 -0800 | [diff] [blame] | 46 | "mts-documentsui", |
Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 47 | "sts", |
| 48 | ], |
| 49 | |
| 50 | required: [ |
| 51 | "CtsCorruptApkTests_b71360999", |
| 52 | "CtsCorruptApkTests_b71361168", |
| 53 | "CtsCorruptApkTests_b79488511", |
Ryan Mitchell | 4a5cbec | 2020-04-29 12:16:36 -0700 | [diff] [blame] | 54 | "CtsCorruptApkTests_Compressed_Q", |
| 55 | "CtsCorruptApkTests_Compressed_R", |
| 56 | "CtsCorruptApkTests_Unaligned_Q", |
| 57 | "CtsCorruptApkTests_Unaligned_R", |
Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 58 | ], |
| 59 | |
Victor Hsieh | e058d13 | 2020-05-01 16:57:02 -0700 | [diff] [blame] | 60 | // Prebuilts of all ABIs. |
| 61 | data: [":CtsApkVerityTestPrebuiltFiles"], |
Victor Hsieh | c9a7d46 | 2020-04-02 15:13:46 -0700 | [diff] [blame] | 62 | } |
| 63 | |
Sasha Smundak | e484228 | 2019-10-30 17:51:53 -0700 | [diff] [blame] | 64 | filegroup { |
| 65 | name: "CtsHostsideTestsAppSecurityUtil", |
| 66 | srcs: ["src/android/appsecurity/cts/Utils.java"], |
| 67 | } |