Remi NGUYEN VAN | 0e3d0923 | 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 | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 19 | certificate: "platform", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 20 | srcs: ["src/**/*.java"], |
Dan Shi | b350df2 | 2019-02-14 11:42:02 -0800 | [diff] [blame] | 21 | test_suites: ["device-tests"], |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 22 | resource_dirs: ["res"], |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 23 | static_libs: [ |
Brett Chabot | 8091d9e | 2019-02-26 14:52:33 -0800 | [diff] [blame] | 24 | "androidx.test.rules", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 25 | "mockito-target-extended-minus-junit4", |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 26 | "NetworkStackBase", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 27 | "testables", |
| 28 | ], |
| 29 | libs: [ |
| 30 | "android.test.runner", |
| 31 | "android.test.base", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 32 | "android.test.mock", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 33 | ], |
| 34 | jni_libs: [ |
| 35 | // For mockito extended |
| 36 | "libdexmakerjvmtiagent", |
| 37 | "libstaticjvmtiagent", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 38 | // For ApfTest |
| 39 | "libartbase", |
| 40 | "libbacktrace", |
| 41 | "libbase", |
| 42 | "libbinder", |
| 43 | "libbinderthreadstate", |
| 44 | "libc++", |
Yifan Hong | 654b1e6 | 2019-04-03 18:15:22 -0700 | [diff] [blame^] | 45 | "libcgrouprc", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 46 | "libcrypto", |
| 47 | "libcutils", |
| 48 | "libdexfile", |
Remi NGUYEN VAN | 329c4da | 2019-03-29 14:49:02 +0900 | [diff] [blame] | 49 | "ld-android", |
| 50 | "libdl_android", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 51 | "libhidl-gen-utils", |
| 52 | "libhidlbase", |
| 53 | "libhidltransport", |
| 54 | "libhwbinder", |
junyulai | 352dc2f | 2019-01-08 20:04:33 +0800 | [diff] [blame] | 55 | "libjsoncpp", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 56 | "liblog", |
| 57 | "liblzma", |
| 58 | "libnativehelper", |
| 59 | "libnetworkstacktestsjni", |
| 60 | "libpackagelistparser", |
| 61 | "libpcre2", |
| 62 | "libprocessgroup", |
| 63 | "libselinux", |
| 64 | "libui", |
| 65 | "libutils", |
| 66 | "libvintf", |
| 67 | "libvndksupport", |
| 68 | "libtinyxml2", |
| 69 | "libunwindstack", |
| 70 | "libutilscallstack", |
| 71 | "libziparchive", |
| 72 | "libz", |
| 73 | "netd_aidl_interface-cpp", |
| 74 | ], |
| 75 | } |
| 76 | |
| 77 | cc_library_shared { |
| 78 | name: "libnetworkstacktestsjni", |
| 79 | srcs: [ |
| 80 | "jni/**/*.cpp" |
| 81 | ], |
| 82 | cflags: [ |
| 83 | "-Wall", |
| 84 | "-Wextra", |
| 85 | "-Werror", |
| 86 | ], |
| 87 | include_dirs: [ |
| 88 | "hardware/google/apf", |
| 89 | ], |
| 90 | shared_libs: [ |
| 91 | "libbinder", |
| 92 | "liblog", |
| 93 | "libcutils", |
| 94 | "libnativehelper", |
| 95 | "netd_aidl_interface-cpp", |
| 96 | ], |
| 97 | static_libs: [ |
| 98 | "libapf", |
| 99 | "libpcap", |
| 100 | ], |
| 101 | |
| 102 | } |