blob: b0626d4ba9a383fe3b37e6753e6fe0ce821d01e2 [file] [log] [blame]
Victor Hsiehc9a7d462020-04-02 15:13:46 -07001// 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 Badoure37c32e2021-02-12 19:42:55 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Victor Hsiehc9a7d462020-04-02 15:13:46 -070019java_test_host {
20 name: "CtsAppSecurityHostTestCases",
21 defaults: ["cts_defaults"],
22
23 // Only compile source java files in this apk.
Winson9bb07b82020-04-27 17:14:14 -070024 srcs: ["src/**/*.java", "src/**/*.kt"],
Victor Hsiehc9a7d462020-04-02 15:13:46 -070025
26 libs: [
27 "cts-tradefed",
28 "tradefed",
29 "compatibility-host-util",
30 "truth-prebuilt",
31 "hamcrest-library",
32 ],
33
Winson9bb07b82020-04-27 17:14:14 -070034 static_libs: [
35 "CompatChangeGatingTestBase",
36 "CtsPkgInstallerConstants",
37 "cts-host-utils",
38 ],
Victor Hsiehc9a7d462020-04-02 15:13:46 -070039
40 java_resource_dirs: ["res"],
41
42 // tag this module as a cts test artifact
43 test_suites: [
44 "cts",
Victor Hsiehc9a7d462020-04-02 15:13:46 -070045 "general-tests",
Kimberly Kreider4f5aca12020-12-15 10:12:04 -080046 "mts-documentsui",
Victor Hsiehc9a7d462020-04-02 15:13:46 -070047 "sts",
48 ],
49
50 required: [
51 "CtsCorruptApkTests_b71360999",
52 "CtsCorruptApkTests_b71361168",
53 "CtsCorruptApkTests_b79488511",
Ryan Mitchell4a5cbec2020-04-29 12:16:36 -070054 "CtsCorruptApkTests_Compressed_Q",
55 "CtsCorruptApkTests_Compressed_R",
56 "CtsCorruptApkTests_Unaligned_Q",
57 "CtsCorruptApkTests_Unaligned_R",
Victor Hsiehc9a7d462020-04-02 15:13:46 -070058 ],
59
Victor Hsiehe058d132020-05-01 16:57:02 -070060 // Prebuilts of all ABIs.
61 data: [":CtsApkVerityTestPrebuiltFiles"],
Victor Hsiehc9a7d462020-04-02 15:13:46 -070062}
63
Sasha Smundake4842282019-10-30 17:51:53 -070064filegroup {
65 name: "CtsHostsideTestsAppSecurityUtil",
66 srcs: ["src/android/appsecurity/cts/Utils.java"],
67}