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 | |
Patrick Rohr | f0f0ac0 | 2023-01-18 02:54:41 -0800 | [diff] [blame] | 21 | // cronet_test_java_defaults can be used to specify a java_defaults target that |
| 22 | // either enables or disables Cronet tests. This is used to disable Cronet |
| 23 | // tests on tm-mainline-prod where the required APIs are not present. |
| 24 | cronet_test_java_defaults = "CronetTestJavaDefaultsEnabled" |
| 25 | // This is a placeholder comment to avoid merge conflicts |
| 26 | // as cronet_test_java_defaults may have different values |
| 27 | // depending on the branch |
| 28 | |
Chidera Olibie | 4fad0c3 | 2022-11-23 18:53:54 +0000 | [diff] [blame] | 29 | android_test { |
Chidera Olibie | 8d6cbff | 2023-01-10 11:16:27 +0000 | [diff] [blame^] | 30 | name: "CtsNetHttpTestCases", |
Chidera Olibie | 4fad0c3 | 2022-11-23 18:53:54 +0000 | [diff] [blame] | 31 | compile_multilib: "both", // Include both the 32 and 64 bit versions |
| 32 | defaults: ["cts_defaults"], |
| 33 | sdk_version: "test_current", |
Chidera Olibie | be5cf70 | 2022-12-14 19:42:34 +0000 | [diff] [blame] | 34 | srcs: [ |
| 35 | "src/**/*.java", |
| 36 | "src/**/*.kt", |
| 37 | ], |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 38 | static_libs: [ |
| 39 | "androidx.test.rules", |
| 40 | "androidx.core_core", |
Chidera Olibie | 4fad0c3 | 2022-11-23 18:53:54 +0000 | [diff] [blame] | 41 | "ctstestrunner-axt", |
Chidera Olibie | be5cf70 | 2022-12-14 19:42:34 +0000 | [diff] [blame] | 42 | "ctstestserver", |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 43 | "junit", |
| 44 | ], |
| 45 | libs: [ |
| 46 | "android.test.runner", |
| 47 | "android.test.base", |
| 48 | "android.test.mock", |
| 49 | "androidx.annotation_annotation", |
Motomu Utsumi | 6dca85d | 2022-10-11 18:32:15 +0900 | [diff] [blame] | 50 | "framework-cronet", |
Chidera Olibie | be5cf70 | 2022-12-14 19:42:34 +0000 | [diff] [blame] | 51 | "org.apache.http.legacy", |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 52 | ], |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 53 | |
Chidera Olibie | 4fad0c3 | 2022-11-23 18:53:54 +0000 | [diff] [blame] | 54 | // Tag this as a cts test artifact |
| 55 | test_suites: [ |
| 56 | "cts", |
| 57 | "general-tests", |
| 58 | "mts-tethering" |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 59 | ], |
| 60 | } |