blob: 1e0adefa89d129f6c93d7769887e554991e1520d [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 Rohr2e3e2952023-05-11 09:53:02 -070040 "truth",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090041 ],
42 libs: [
Motomu Utsumiceb2a752022-10-04 18:38:04 +090043 "android.test.base",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090044 "androidx.annotation_annotation",
Motomu Utsumi73e2e872023-04-14 19:22:42 +090045 "framework-connectivity",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000046 "org.apache.http.legacy",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090047 ],
Chidera Olibied66799a2023-01-24 20:22:56 +000048 lint: { test: true }
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000049}
Motomu Utsumiceb2a752022-10-04 18:38:04 +090050
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000051android_test {
52 name: "CtsNetHttpTestCases",
53 defaults: [
54 "cts_defaults",
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000055 ],
Chidera Olibie5924d6e2023-05-24 11:54:04 +000056 enforce_default_target_sdk_version: true,
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000057 sdk_version: "test_current",
Chidera Olibie5924d6e2023-05-24 11:54:04 +000058 min_sdk_version: "30",
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000059 static_libs: ["CtsNetHttpTestsLib"],
Chidera Olibie4fad0c32022-11-23 18:53:54 +000060 // Tag this as a cts test artifact
61 test_suites: [
62 "cts",
63 "general-tests",
64 "mts-tethering"
Motomu Utsumiceb2a752022-10-04 18:38:04 +090065 ],
66}