blob: 7b52694b1a93e924f0252078e4200e21f31d9259 [file] [log] [blame]
Motomu Utsumiceb2a752022-10-04 18:38:04 +09001//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000021android_library {
22 name: "CtsNetHttpTestsLib",
Dan Stahraf33f012023-03-02 16:09:07 +000023 defaults: [
24 "cts_defaults",
Dan Stahraf33f012023-03-02 16:09:07 +000025 ],
Chidera Olibie4fad0c32022-11-23 18:53:54 +000026 sdk_version: "test_current",
Chidera Olibied66799a2023-01-24 20:22:56 +000027 min_sdk_version: "30",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000028 srcs: [
29 "src/**/*.java",
30 "src/**/*.kt",
31 ],
Motomu Utsumiceb2a752022-10-04 18:38:04 +090032 static_libs: [
Chidera Olibie0a5befb2023-02-14 14:53:37 +000033 "androidx.test.ext.junit",
Chidera Olibie4fad0c32022-11-23 18:53:54 +000034 "ctstestrunner-axt",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000035 "ctstestserver",
Stefano Duo7351f472023-01-16 15:56:58 +000036 "hamcrest-library",
Patrick Rohr2e3e2952023-05-11 09:53:02 -070037 "junit",
Chidera Olibie0a5befb2023-02-14 14:53:37 +000038 "kotlin-test",
Stefano Duo067aecf2023-03-08 15:25:32 +000039 "mockito-target",
Patrick Rohr92c46362023-06-05 15:27:26 -070040 "net-tests-utils",
Patrick Rohr2e3e2952023-05-11 09:53:02 -070041 "truth",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090042 ],
43 libs: [
Motomu Utsumiceb2a752022-10-04 18:38:04 +090044 "android.test.base",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090045 "androidx.annotation_annotation",
Motomu Utsumi73e2e872023-04-14 19:22:42 +090046 "framework-connectivity",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000047 "org.apache.http.legacy",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090048 ],
Chidera Olibied66799a2023-01-24 20:22:56 +000049 lint: { test: true }
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000050}
Motomu Utsumiceb2a752022-10-04 18:38:04 +090051
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000052android_test {
53 name: "CtsNetHttpTestCases",
54 defaults: [
55 "cts_defaults",
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000056 ],
Chidera Olibie5924d6e2023-05-24 11:54:04 +000057 enforce_default_target_sdk_version: true,
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000058 sdk_version: "test_current",
Chidera Olibie5924d6e2023-05-24 11:54:04 +000059 min_sdk_version: "30",
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000060 static_libs: ["CtsNetHttpTestsLib"],
Chidera Olibie4fad0c32022-11-23 18:53:54 +000061 // Tag this as a cts test artifact
62 test_suites: [
63 "cts",
64 "general-tests",
Tongbo Liu199357b2023-12-19 10:50:05 +000065 "mts-tethering",
66 "mcts-tethering",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090067 ],
68}