| Chidera Olibie | d46c92f | 2023-02-08 19:01:15 +0000 | [diff] [blame] | 1 | // Copyright (C) 2023 The Android Open Source Project | 
|  | 2 | // | 
|  | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | 4 | // you may not use this file except in compliance with the License. | 
|  | 5 | // You may obtain a copy of the License at | 
|  | 6 | // | 
|  | 7 | //      http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 8 | // | 
|  | 9 | // Unless required by applicable law or agreed to in writing, software | 
|  | 10 | // distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 12 | // See the License for the specific language governing permissions and | 
|  | 13 | // limitations under the License. | 
|  | 14 |  | 
|  | 15 | package { | 
| Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_fwk_core_networking", | 
| Chidera Olibie | d46c92f | 2023-02-08 19:01:15 +0000 | [diff] [blame] | 17 | // See: http://go/android-license-faq | 
|  | 18 | default_applicable_licenses: ["Android-Apache-2.0"], | 
|  | 19 | } | 
|  | 20 |  | 
| Chidera Olibie | 5b95954 | 2023-03-21 15:43:41 +0000 | [diff] [blame] | 21 | java_genrule { | 
|  | 22 | name: "net-http-test-jarjar-rules", | 
|  | 23 | tool_files: [ | 
|  | 24 | ":NetHttpTestsLibPreJarJar{.jar}", | 
|  | 25 | "jarjar_excludes.txt", | 
|  | 26 | ], | 
|  | 27 | tools: [ | 
|  | 28 | "jarjar-rules-generator", | 
|  | 29 | ], | 
|  | 30 | out: ["net_http_test_jarjar_rules.txt"], | 
|  | 31 | cmd: "$(location jarjar-rules-generator) " + | 
|  | 32 | "$(location :NetHttpTestsLibPreJarJar{.jar}) " + | 
| Motomu Utsumi | 73e2e87 | 2023-04-14 19:22:42 +0900 | [diff] [blame] | 33 | "--prefix android.net.connectivity " + | 
| Chidera Olibie | 5b95954 | 2023-03-21 15:43:41 +0000 | [diff] [blame] | 34 | "--excludes $(location jarjar_excludes.txt) " + | 
|  | 35 | "--output $(out)", | 
|  | 36 | } | 
|  | 37 |  | 
| Patrick Rohr | cc2e2dc | 2023-05-03 19:12:23 -0700 | [diff] [blame] | 38 | // Library to be used in coverage tests. cronet_java_tests can't be used directly because the common | 
|  | 39 | // tests need to inherit the NetHttpTests manifest. | 
| Chidera Olibie | d46c92f | 2023-02-08 19:01:15 +0000 | [diff] [blame] | 40 | android_library { | 
|  | 41 | name: "NetHttpTestsLibPreJarJar", | 
| Stefano Duo | afd0394 | 2023-07-17 14:52:16 +0000 | [diff] [blame] | 42 | static_libs: [ | 
|  | 43 | "cronet_aml_api_java", | 
|  | 44 | "cronet_aml_java__testing", | 
|  | 45 | "cronet_java_tests", | 
|  | 46 | ], | 
| Chidera Olibie | 5b95954 | 2023-03-21 15:43:41 +0000 | [diff] [blame] | 47 | sdk_version: "module_current", | 
| Chidera Olibie | d66799a | 2023-01-24 20:22:56 +0000 | [diff] [blame] | 48 | min_sdk_version: "30", | 
| Chidera Olibie | d46c92f | 2023-02-08 19:01:15 +0000 | [diff] [blame] | 49 | } | 
|  | 50 |  | 
|  | 51 | android_test { | 
| Mohannad Farrag | 2ba5c62 | 2024-01-11 14:38:15 +0000 | [diff] [blame] | 52 | name: "NetHttpTests", | 
|  | 53 | defaults: [ | 
| Chidera Olibie | d46c92f | 2023-02-08 19:01:15 +0000 | [diff] [blame] | 54 | "mts-target-sdk-version-current", | 
| Mohannad Farrag | 2ba5c62 | 2024-01-11 14:38:15 +0000 | [diff] [blame] | 55 | ], | 
|  | 56 | static_libs: ["NetHttpTestsLibPreJarJar"], | 
|  | 57 | jarjar_rules: ":net-http-test-jarjar-rules", | 
|  | 58 | jni_libs: [ | 
| Stefano Duo | afd0394 | 2023-07-17 14:52:16 +0000 | [diff] [blame] | 59 | "cronet_aml_components_cronet_android_cronet__testing", | 
|  | 60 | "cronet_aml_components_cronet_android_cronet_tests__testing", | 
| Mohannad Farrag | 2ba5c62 | 2024-01-11 14:38:15 +0000 | [diff] [blame] | 61 | "cronet_aml_third_party_netty_tcnative_netty_tcnative_so__testing", | 
|  | 62 | ], | 
|  | 63 | test_suites: [ | 
|  | 64 | "general-tests", | 
|  | 65 | "mts-tethering", | 
|  | 66 | ], | 
|  | 67 | data: [":cronet_javatests_resources"], | 
| Chidera Olibie | d46c92f | 2023-02-08 19:01:15 +0000 | [diff] [blame] | 68 | } |