Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [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 | // See: http://go/android-license-faq |
Baligh Uddin | 2afd098 | 2021-05-24 03:50:01 +0000 | [diff] [blame] | 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | android_test { |
| 23 | name: "FrameworksNetIntegrationTests", |
Colin Cross | 8e50171 | 2022-05-18 18:23:18 +0000 | [diff] [blame] | 24 | defaults: ["framework-connectivity-test-defaults"], |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 25 | platform_apis: true, |
| 26 | certificate: "platform", |
| 27 | srcs: [ |
| 28 | "src/**/*.kt", |
| 29 | "src/**/*.aidl", |
| 30 | ], |
| 31 | libs: [ |
| 32 | "android.test.mock", |
Remi NGUYEN VAN | 0a37e72 | 2021-08-04 19:19:49 +0900 | [diff] [blame] | 33 | "ServiceConnectivityResources", |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 34 | ], |
| 35 | static_libs: [ |
| 36 | "NetworkStackApiStableLib", |
| 37 | "androidx.test.ext.junit", |
| 38 | "frameworks-net-integration-testutils", |
| 39 | "kotlin-reflect", |
| 40 | "mockito-target-extended-minus-junit4", |
| 41 | "net-tests-utils", |
Remi NGUYEN VAN | b240e2a | 2021-07-12 23:40:56 +0000 | [diff] [blame] | 42 | "service-connectivity-pre-jarjar", |
Lorenzo Colitti | 4a18ab2 | 2022-02-04 01:39:01 +0900 | [diff] [blame] | 43 | "service-connectivity-tiramisu-pre-jarjar", |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 44 | "services.net", |
| 45 | "testables", |
| 46 | ], |
| 47 | test_suites: ["device-tests"], |
| 48 | use_embedded_native_libs: true, |
| 49 | jni_libs: [ |
| 50 | // For mockito extended |
| 51 | "libdexmakerjvmtiagent", |
| 52 | "libstaticjvmtiagent", |
| 53 | // android_library does not include JNI libs: include NetworkStack dependencies here |
| 54 | "libnativehelper_compat_libc++", |
| 55 | "libnetworkstackutilsjni", |
Remi NGUYEN VAN | 6a20eed | 2022-01-31 11:21:08 +0900 | [diff] [blame] | 56 | "libandroid_net_connectivity_com_android_net_module_util_jni", |
Patrick Rohr | d817436 | 2022-02-01 12:32:43 +0100 | [diff] [blame] | 57 | "libservice-connectivity", |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 58 | ], |
Remi NGUYEN VAN | b240e2a | 2021-07-12 23:40:56 +0000 | [diff] [blame] | 59 | jarjar_rules: ":connectivity-jarjar-rules", |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | // Utilities for testing framework code both in integration and unit tests. |
| 63 | java_library { |
| 64 | name: "frameworks-net-integration-testutils", |
| 65 | defaults: ["framework-connectivity-test-defaults"], |
| 66 | srcs: ["util/**/*.java", "util/**/*.kt"], |
| 67 | static_libs: [ |
| 68 | "androidx.annotation_annotation", |
| 69 | "androidx.test.rules", |
| 70 | "junit", |
| 71 | "net-tests-utils", |
| 72 | ], |
| 73 | libs: [ |
Paul Duffin | 4ceb8c1 | 2022-05-20 14:15:42 +0000 | [diff] [blame] | 74 | "service-connectivity-for-tests", |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 75 | "services.core", |
| 76 | "services.net", |
| 77 | ], |
Remi NGUYEN VAN | 678277c | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 78 | } |