blob: 92b73d954ca68cc9e8f22f4d909d4d3b021ed37e [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 {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000018 default_team: "trendy_team_fwk_core_networking",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090019 default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000022android_library {
23 name: "CtsNetHttpTestsLib",
Dan Stahraf33f012023-03-02 16:09:07 +000024 defaults: [
25 "cts_defaults",
Dan Stahraf33f012023-03-02 16:09:07 +000026 ],
Chidera Olibie4fad0c32022-11-23 18:53:54 +000027 sdk_version: "test_current",
Chidera Olibied66799a2023-01-24 20:22:56 +000028 min_sdk_version: "30",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000029 srcs: [
30 "src/**/*.java",
31 "src/**/*.kt",
32 ],
Motomu Utsumiceb2a752022-10-04 18:38:04 +090033 static_libs: [
Chidera Olibie0a5befb2023-02-14 14:53:37 +000034 "androidx.test.ext.junit",
Chidera Olibie4fad0c32022-11-23 18:53:54 +000035 "ctstestrunner-axt",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000036 "ctstestserver",
Stefano Duo7351f472023-01-16 15:56:58 +000037 "hamcrest-library",
Patrick Rohr2e3e2952023-05-11 09:53:02 -070038 "junit",
Chidera Olibie0a5befb2023-02-14 14:53:37 +000039 "kotlin-test",
Stefano Duo067aecf2023-03-08 15:25:32 +000040 "mockito-target",
Patrick Rohr92c46362023-06-05 15:27:26 -070041 "net-tests-utils",
Patrick Rohr2e3e2952023-05-11 09:53:02 -070042 "truth",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090043 ],
44 libs: [
Motomu Utsumiceb2a752022-10-04 18:38:04 +090045 "android.test.base",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090046 "androidx.annotation_annotation",
Motomu Utsumi73e2e872023-04-14 19:22:42 +090047 "framework-connectivity",
Chidera Olibiebe5cf702022-12-14 19:42:34 +000048 "org.apache.http.legacy",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090049 ],
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000050 lint: {
51 test: true,
52 },
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000053}
Motomu Utsumiceb2a752022-10-04 18:38:04 +090054
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000055android_test {
56 name: "CtsNetHttpTestCases",
57 defaults: [
58 "cts_defaults",
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000059 ],
Chidera Olibie5924d6e2023-05-24 11:54:04 +000060 enforce_default_target_sdk_version: true,
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000061 sdk_version: "test_current",
Chidera Olibie5924d6e2023-05-24 11:54:04 +000062 min_sdk_version: "30",
Chidera Olibiee3e2e7f2023-02-08 19:12:10 +000063 static_libs: ["CtsNetHttpTestsLib"],
Chidera Olibie4fad0c32022-11-23 18:53:54 +000064 // Tag this as a cts test artifact
65 test_suites: [
66 "cts",
67 "general-tests",
Tongbo Liu199357b2023-12-19 10:50:05 +000068 "mts-tethering",
69 "mcts-tethering",
Motomu Utsumiceb2a752022-10-04 18:38:04 +090070 ],
71}