Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 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 | android_test { |
| 18 | name: "NetworkStackTests", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 19 | certificate: "platform", |
Chalard Jean | 3674b55 | 2019-06-03 13:37:08 +0900 | [diff] [blame] | 20 | srcs: ["src/**/*.java", "src/**/*.kt"], |
Dan Shi | 4c44c8e | 2019-02-14 11:42:02 -0800 | [diff] [blame] | 21 | test_suites: ["device-tests"], |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 22 | resource_dirs: ["res"], |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 23 | static_libs: [ |
Brett Chabot | 189c598 | 2019-02-26 14:52:33 -0800 | [diff] [blame] | 24 | "androidx.test.rules", |
Chalard Jean | 3c9f687 | 2019-07-03 12:31:05 +0900 | [diff] [blame] | 25 | "kotlin-reflect", |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 26 | "mockito-target-extended-minus-junit4", |
Chalard Jean | 0d0cc8c | 2019-05-28 16:48:32 +0900 | [diff] [blame] | 27 | "net-tests-utils", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 28 | "NetworkStackApiCurrentLib", |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 29 | "testables", |
| 30 | ], |
| 31 | libs: [ |
| 32 | "android.test.runner", |
| 33 | "android.test.base", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 34 | "android.test.mock", |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 35 | ], |
Xiao Ma | 53ed1ac | 2019-06-03 15:48:39 +0900 | [diff] [blame] | 36 | defaults: ["libnetworkstackutilsjni_deps"], |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 37 | jni_libs: [ |
| 38 | // For mockito extended |
| 39 | "libdexmakerjvmtiagent", |
| 40 | "libstaticjvmtiagent", |
Xiao Ma | 53ed1ac | 2019-06-03 15:48:39 +0900 | [diff] [blame] | 41 | "libnetworkstackutilsjni", |
| 42 | ], |
| 43 | } |
| 44 | |
| 45 | // Additional dependencies of libnetworkstackutilsjni that are not provided by the system when |
| 46 | // running as a test application. |
| 47 | // Using java_defaults as jni_libs does not support filegroups. |
| 48 | java_defaults { |
| 49 | name: "libnetworkstackutilsjni_deps", |
| 50 | jni_libs: [ |
| 51 | "libartbase", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 52 | "libbacktrace", |
| 53 | "libbase", |
| 54 | "libbinder", |
| 55 | "libbinderthreadstate", |
| 56 | "libc++", |
Yifan Hong | 4a55b45 | 2019-04-03 18:15:22 -0700 | [diff] [blame] | 57 | "libcgrouprc", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 58 | "libcrypto", |
| 59 | "libcutils", |
Remi NGUYEN VAN | 1c88d60 | 2019-03-29 14:49:02 +0900 | [diff] [blame] | 60 | "ld-android", |
| 61 | "libdl_android", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 62 | "libhidl-gen-utils", |
| 63 | "libhidlbase", |
junyulai | cd924e5 | 2019-01-08 20:04:33 +0800 | [diff] [blame] | 64 | "libjsoncpp", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 65 | "liblog", |
| 66 | "liblzma", |
| 67 | "libnativehelper", |
Lorenzo Colitti | 88ddd882 | 2019-05-01 11:54:33 +0900 | [diff] [blame] | 68 | "libnativehelper_compat_libc++", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 69 | "libnetworkstacktestsjni", |
| 70 | "libpackagelistparser", |
| 71 | "libpcre2", |
| 72 | "libprocessgroup", |
| 73 | "libselinux", |
| 74 | "libui", |
| 75 | "libutils", |
| 76 | "libvintf", |
| 77 | "libvndksupport", |
| 78 | "libtinyxml2", |
| 79 | "libunwindstack", |
| 80 | "libutilscallstack", |
| 81 | "libziparchive", |
| 82 | "libz", |
Jeongik Cha | 8703609 | 2019-10-25 02:02:00 +0900 | [diff] [blame^] | 83 | "netd_aidl_interface-cpp", |
Remi NGUYEN VAN | 4a2eb87 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 84 | ], |
| 85 | } |