Remi NGUYEN VAN | 95dc87e | 2019-06-13 16:12:02 +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 | |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | // A large-scale-change added 'default_applicable_licenses' to import |
| 20 | // all of the 'license_kinds' from "frameworks_base_license" |
| 21 | // to get the below license kinds: |
| 22 | // SPDX-license-identifier-Apache-2.0 |
| 23 | default_applicable_licenses: ["frameworks_base_license"], |
| 24 | } |
| 25 | |
Remi NGUYEN VAN | bb59253 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 26 | android_test { |
| 27 | name: "FrameworksNetIntegrationTests", |
Chiachang Wang | a12c1f1 | 2021-04-13 20:16:00 +0800 | [diff] [blame] | 28 | defaults: ["framework-connectivity-test-defaults"], |
Remi NGUYEN VAN | bb59253 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 29 | platform_apis: true, |
| 30 | certificate: "platform", |
| 31 | srcs: [ |
| 32 | "src/**/*.kt", |
| 33 | "src/**/*.aidl", |
| 34 | ], |
| 35 | libs: [ |
| 36 | "android.test.mock", |
| 37 | ], |
| 38 | static_libs: [ |
Lorenzo Colitti | 55d9c5a | 2021-03-01 14:49:34 +0900 | [diff] [blame] | 39 | "NetworkStackApiStableLib", |
Remi NGUYEN VAN | bb59253 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 40 | "androidx.test.ext.junit", |
| 41 | "frameworks-net-integration-testutils", |
| 42 | "kotlin-reflect", |
| 43 | "mockito-target-extended-minus-junit4", |
| 44 | "net-tests-utils", |
Aaron Huang | 944025a | 2020-06-27 07:18:23 +0800 | [diff] [blame] | 45 | "service-connectivity", |
Remi NGUYEN VAN | bb59253 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 46 | "services.core", |
| 47 | "services.net", |
| 48 | "testables", |
| 49 | ], |
Remi NGUYEN VAN | 4be48b1 | 2020-01-06 19:49:15 +0900 | [diff] [blame] | 50 | test_suites: ["device-tests"], |
Remi NGUYEN VAN | bb59253 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 51 | use_embedded_native_libs: true, |
| 52 | jni_libs: [ |
| 53 | // For mockito extended |
| 54 | "libdexmakerjvmtiagent", |
| 55 | "libstaticjvmtiagent", |
| 56 | // android_library does not include JNI libs: include NetworkStack dependencies here |
| 57 | "libnativehelper_compat_libc++", |
| 58 | "libnetworkstackutilsjni", |
| 59 | ], |
| 60 | } |
| 61 | |
Remi NGUYEN VAN | 95dc87e | 2019-06-13 16:12:02 +0900 | [diff] [blame] | 62 | // Utilities for testing framework code both in integration and unit tests. |
| 63 | java_library { |
| 64 | name: "frameworks-net-integration-testutils", |
Chiachang Wang | 855f753 | 2021-04-14 21:33:49 +0800 | [diff] [blame^] | 65 | defaults: ["framework-connectivity-test-defaults"], |
Remi NGUYEN VAN | 95dc87e | 2019-06-13 16:12:02 +0900 | [diff] [blame] | 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: [ |
Aaron Huang | 944025a | 2020-06-27 07:18:23 +0800 | [diff] [blame] | 74 | "service-connectivity", |
Remi NGUYEN VAN | 95dc87e | 2019-06-13 16:12:02 +0900 | [diff] [blame] | 75 | "services.core", |
| 76 | "services.net", |
| 77 | ], |
| 78 | } |