1// Copyright (C) 2008 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
15android_test {
16    name: "CtsAppTestCases",
17    defaults: ["cts_defaults"],
18    libs: [
19        "android.test.runner",
20        "org.apache.http.legacy",
21        "android.test.base",
22    ],
23    static_libs: [
24        "compatibility-device-util-axt",
25        "ctstestrunner-axt",
26        "ctstestserver",
27        "cts-wm-util",
28        "mockito-target-minus-junit4",
29        "androidx.test.ext.junit",
30        "androidx.test.rules",
31        "platform-test-annotations",
32        "platformprotosnano",
33    ],
34    srcs: ["src/**/*.java"],
35    // Tag this module as a cts test artifact
36    test_suites: [
37        "cts",
38        "vts10",
39        "general-tests",
40    ],
41    instrumentation_for: "CtsAppTestStubs",
42    sdk_version: "test_current",
43    min_sdk_version: "14",
44}
45
46android_test {
47    name: "CtsDownloadManagerApi28",
48    defaults: ["cts_defaults"],
49    libs: [
50        "android.test.runner",
51        "org.apache.http.legacy",
52        "android.test.base",
53    ],
54    static_libs: [
55        "compatibility-device-util-axt",
56        "ctstestrunner-axt",
57        "ctstestserver",
58        "mockito-target-minus-junit4",
59        "androidx.test.rules",
60        "platform-test-annotations",
61        "androidx.test.rules",
62    ],
63    srcs: [
64        "DownloadManagerApi28Test/src/**/*.java",
65        "src/android/app/cts/DownloadManagerTestBase.java",
66    ],
67    resource_dirs: ["app/res"],
68    asset_dirs: ["app/assets"],
69    // Tag this module as a cts test artifact
70    test_suites: [
71        "cts",
72        "vts10",
73        "general-tests",
74    ],
75    sdk_version: "test_current",
76    min_sdk_version: "14",
77    manifest: "DownloadManagerApi28Test/AndroidManifest.xml",
78    test_config: "DownloadManagerApi28Test/AndroidTest.xml",
79}
80
81android_test {
82    name: "CtsDownloadManagerLegacy",
83    defaults: ["cts_defaults"],
84    libs: [
85        "android.test.runner",
86        "org.apache.http.legacy",
87        "android.test.base",
88    ],
89    static_libs: [
90        "compatibility-device-util-axt",
91        "ctstestrunner-axt",
92        "ctstestserver",
93        "mockito-target-minus-junit4",
94        "androidx.test.rules",
95        "platform-test-annotations",
96        "androidx.test.rules",
97    ],
98    srcs: [
99        "DownloadManagerLegacyTest/src/**/*.java",
100        "src/android/app/cts/DownloadManagerTestBase.java",
101    ],
102    resource_dirs: ["app/res"],
103    asset_dirs: ["app/assets"],
104    // Tag this module as a cts test artifact
105    test_suites: [
106        "cts",
107        "vts10",
108        "general-tests",
109    ],
110    sdk_version: "test_current",
111    min_sdk_version: "14",
112    manifest: "DownloadManagerLegacyTest/AndroidManifest.xml",
113    test_config: "DownloadManagerLegacyTest/AndroidTest.xml",
114}
115