Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
Chidera Olibie | e3e2e7f | 2023-02-08 19:12:10 +0000 | [diff] [blame] | 21 | android_library { |
| 22 | name: "CtsNetHttpTestsLib", |
Dan Stahr | af33f01 | 2023-03-02 16:09:07 +0000 | [diff] [blame] | 23 | defaults: [ |
| 24 | "cts_defaults", |
Dan Stahr | af33f01 | 2023-03-02 16:09:07 +0000 | [diff] [blame] | 25 | ], |
Chidera Olibie | 4fad0c3 | 2022-11-23 18:53:54 +0000 | [diff] [blame] | 26 | sdk_version: "test_current", |
Chidera Olibie | d66799a | 2023-01-24 20:22:56 +0000 | [diff] [blame] | 27 | min_sdk_version: "30", |
Chidera Olibie | be5cf70 | 2022-12-14 19:42:34 +0000 | [diff] [blame] | 28 | srcs: [ |
| 29 | "src/**/*.java", |
| 30 | "src/**/*.kt", |
| 31 | ], |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 32 | static_libs: [ |
Chidera Olibie | 0a5befb | 2023-02-14 14:53:37 +0000 | [diff] [blame] | 33 | "androidx.test.ext.junit", |
Chidera Olibie | 4fad0c3 | 2022-11-23 18:53:54 +0000 | [diff] [blame] | 34 | "ctstestrunner-axt", |
Chidera Olibie | be5cf70 | 2022-12-14 19:42:34 +0000 | [diff] [blame] | 35 | "ctstestserver", |
Stefano Duo | 7351f47 | 2023-01-16 15:56:58 +0000 | [diff] [blame] | 36 | "hamcrest-library", |
Patrick Rohr | 2e3e295 | 2023-05-11 09:53:02 -0700 | [diff] [blame] | 37 | "junit", |
Chidera Olibie | 0a5befb | 2023-02-14 14:53:37 +0000 | [diff] [blame] | 38 | "kotlin-test", |
Stefano Duo | 067aecf | 2023-03-08 15:25:32 +0000 | [diff] [blame] | 39 | "mockito-target", |
Patrick Rohr | 92c4636 | 2023-06-05 15:27:26 -0700 | [diff] [blame] | 40 | "net-tests-utils", |
Patrick Rohr | 2e3e295 | 2023-05-11 09:53:02 -0700 | [diff] [blame] | 41 | "truth", |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 42 | ], |
| 43 | libs: [ |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 44 | "android.test.base", |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 45 | "androidx.annotation_annotation", |
Motomu Utsumi | 73e2e87 | 2023-04-14 19:22:42 +0900 | [diff] [blame] | 46 | "framework-connectivity", |
Chidera Olibie | be5cf70 | 2022-12-14 19:42:34 +0000 | [diff] [blame] | 47 | "org.apache.http.legacy", |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 48 | ], |
Chidera Olibie | d66799a | 2023-01-24 20:22:56 +0000 | [diff] [blame] | 49 | lint: { test: true } |
Chidera Olibie | e3e2e7f | 2023-02-08 19:12:10 +0000 | [diff] [blame] | 50 | } |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 51 | |
Chidera Olibie | e3e2e7f | 2023-02-08 19:12:10 +0000 | [diff] [blame] | 52 | android_test { |
| 53 | name: "CtsNetHttpTestCases", |
| 54 | defaults: [ |
| 55 | "cts_defaults", |
Chidera Olibie | e3e2e7f | 2023-02-08 19:12:10 +0000 | [diff] [blame] | 56 | ], |
Chidera Olibie | 5924d6e | 2023-05-24 11:54:04 +0000 | [diff] [blame] | 57 | enforce_default_target_sdk_version: true, |
Chidera Olibie | e3e2e7f | 2023-02-08 19:12:10 +0000 | [diff] [blame] | 58 | sdk_version: "test_current", |
Chidera Olibie | 5924d6e | 2023-05-24 11:54:04 +0000 | [diff] [blame] | 59 | min_sdk_version: "30", |
Chidera Olibie | e3e2e7f | 2023-02-08 19:12:10 +0000 | [diff] [blame] | 60 | static_libs: ["CtsNetHttpTestsLib"], |
Chidera Olibie | 4fad0c3 | 2022-11-23 18:53:54 +0000 | [diff] [blame] | 61 | // Tag this as a cts test artifact |
| 62 | test_suites: [ |
| 63 | "cts", |
| 64 | "general-tests", |
Tongbo Liu | 199357b | 2023-12-19 10:50:05 +0000 | [diff] [blame] | 65 | "mts-tethering", |
| 66 | "mcts-tethering", |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 67 | ], |
| 68 | } |