xref: /aosp_15_r20/cts/tests/backup/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
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_android_onboarding",
18}
19
20android_test {
21    name: "CtsBackupTestCases",
22    defaults: [
23        "cts_defaults",
24        "mts-target-sdk-version-current",
25    ],
26    min_sdk_version: "30",
27    compile_multilib: "both",
28    libs: [
29        "android.test.runner.stubs.test",
30        "org.apache.http.legacy.stubs.test",
31        "android.test.base.stubs.test",
32    ],
33    static_libs: [
34        "compatibility-device-util-axt",
35        "ctstestrunner-axt",
36        "ctstestserver",
37        "mockito-target-minus-junit4",
38        "permission-test-util-lib",
39        "testng",
40        "device-time-shell-utils",
41        "backup_flags_lib",
42    ],
43    host_required: ["CtsBackupHostTestCases"],
44    srcs: ["src/**/*.java"],
45    test_suites: [
46        "cts",
47        "general-tests",
48        "mts-permission",
49    ],
50    sdk_version: "test_current",
51    data: [
52        ":CtsPermissionBackupApp",
53        ":CtsPermissionBackupApp22",
54        ":CtsAppLocalesBackupApp1",
55        ":CtsAppLocalesBackupApp2",
56        ":CtsBackupRestoreEventLoggerApp",
57        ":CtsFullBackupApp",
58        ":CtsKeyValueBackupApp",
59        ":CtsRestrictedModeOptedInApp",
60        ":CtsRestrictedModeOptedOutApp",
61        ":CtsRestrictedModeNoActionApp1",
62        ":CtsRestrictedModeNoActionApp2",
63    ],
64    per_testcase_directory: true,
65}
66
67test_module_config {
68    name: "CtsBackupTestCases_cts_permissiontest",
69    base: "CtsBackupTestCases",
70    test_suites: ["general-tests"],
71    include_filters: ["android.backup.cts.PermissionTest"],
72}
73