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: [ |
| 24 | "android-support-test", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 25 | "frameworks-base-testutils", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 26 | "mockito-target-extended-minus-junit4", |
| 27 | "NetworkStackLib", |
| 28 | "testables", |
| 29 | ], |
| 30 | libs: [ |
| 31 | "android.test.runner", |
| 32 | "android.test.base", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 33 | "android.test.mock", |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 34 | ], |
| 35 | jni_libs: [ |
| 36 | // For mockito extended |
| 37 | "libdexmakerjvmtiagent", |
| 38 | "libstaticjvmtiagent", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 39 | // For ApfTest |
| 40 | "libartbase", |
| 41 | "libbacktrace", |
| 42 | "libbase", |
| 43 | "libbinder", |
| 44 | "libbinderthreadstate", |
| 45 | "libc++", |
| 46 | "libcrypto", |
| 47 | "libcutils", |
| 48 | "libdexfile", |
| 49 | "libhidl-gen-utils", |
| 50 | "libhidlbase", |
| 51 | "libhidltransport", |
| 52 | "libhwbinder", |
junyulai | 352dc2f | 2019-01-08 20:04:33 +0800 | [diff] [blame] | 53 | "libjsoncpp", |
Remi NGUYEN VAN | 3c600a1 | 2019-01-10 19:12:46 +0900 | [diff] [blame] | 54 | "liblog", |
| 55 | "liblzma", |
| 56 | "libnativehelper", |
| 57 | "libnetworkstacktestsjni", |
| 58 | "libpackagelistparser", |
| 59 | "libpcre2", |
| 60 | "libprocessgroup", |
| 61 | "libselinux", |
| 62 | "libui", |
| 63 | "libutils", |
| 64 | "libvintf", |
| 65 | "libvndksupport", |
| 66 | "libtinyxml2", |
| 67 | "libunwindstack", |
| 68 | "libutilscallstack", |
| 69 | "libziparchive", |
| 70 | "libz", |
| 71 | "netd_aidl_interface-cpp", |
| 72 | ], |
| 73 | } |
| 74 | |
| 75 | cc_library_shared { |
| 76 | name: "libnetworkstacktestsjni", |
| 77 | srcs: [ |
| 78 | "jni/**/*.cpp" |
| 79 | ], |
| 80 | cflags: [ |
| 81 | "-Wall", |
| 82 | "-Wextra", |
| 83 | "-Werror", |
| 84 | ], |
| 85 | include_dirs: [ |
| 86 | "hardware/google/apf", |
| 87 | ], |
| 88 | shared_libs: [ |
| 89 | "libbinder", |
| 90 | "liblog", |
| 91 | "libcutils", |
| 92 | "libnativehelper", |
| 93 | "netd_aidl_interface-cpp", |
| 94 | ], |
| 95 | static_libs: [ |
| 96 | "libapf", |
| 97 | "libpcap", |
| 98 | ], |
| 99 | |
| 100 | } |