1// Copyright (C) 2019 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_mainline_modularization",
18}
19
20java_test_host {
21    name: "CtsRollbackManagerHostTestCases",
22    defaults: ["cts_defaults"],
23    srcs: ["src/**/*.java"],
24    libs: [
25        "cts-tradefed",
26        "cts-shim-host-lib",
27        "tradefed",
28        "truth",
29    ],
30    static_libs: ["cts-install-lib-host"],
31    data: [
32        ":CtsRollbackManagerHostTestHelperApp",
33        ":CtsRollbackManagerHostTestHelperApp2",
34    ],
35    test_suites: [
36        "cts",
37        "general-tests",
38    ],
39}
40
41android_test_helper_app {
42    name: "CtsRollbackManagerHostTestHelperApp",
43    srcs: ["app/src/**/*.java"],
44    static_libs: [
45        "androidx.test.rules",
46        "cts-rollback-lib",
47        "cts-install-lib",
48    ],
49    manifest: "app/AndroidManifest.xml",
50    java_resources: [
51        ":ApexKeyRotationTestV2_SignedBobRotRollback",
52    ],
53    sdk_version: "test_current",
54    test_suites: ["device-tests"],
55}
56
57android_test_helper_app {
58    name: "CtsRollbackManagerHostTestHelperApp2",
59    srcs: ["app2/src/**/*.java"],
60    static_libs: [
61        "androidx.test.rules",
62        "cts-rollback-lib",
63        "cts-install-lib",
64    ],
65    manifest: "app2/AndroidManifest.xml",
66    sdk_version: "test_current",
67    test_suites: ["device-tests"],
68}
69