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",
30        "org.apache.http.legacy",
31        "android.test.base",
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    ],
42    host_required: ["CtsBackupHostTestCases"],
43    srcs: ["src/**/*.java"],
44    test_suites: [
45        "cts",
46        "general-tests",
47        "mts-permission",
48    ],
49    sdk_version: "test_current",
50    data: [
51        ":CtsPermissionBackupApp",
52        ":CtsPermissionBackupApp22",
53        ":CtsAppLocalesBackupApp1",
54        ":CtsAppLocalesBackupApp2",
55        ":CtsBackupRestoreEventLoggerApp",
56        ":CtsFullBackupApp",
57        ":CtsKeyValueBackupApp",
58    ],
59    per_testcase_directory: true,
60}
61