blob: 85951eb3bdf427d62a8725c1cc6de88734383e19 [file] [log] [blame]
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +09001//
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
17android_test {
18 name: "NetworkStackTests",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090019 certificate: "platform",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090020 srcs: ["src/**/*.java"],
Dan Shi4c44c8e2019-02-14 11:42:02 -080021 test_suites: ["device-tests"],
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090022 resource_dirs: ["res"],
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090023 static_libs: [
Brett Chabot189c5982019-02-26 14:52:33 -080024 "androidx.test.rules",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090025 "mockito-target-extended-minus-junit4",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090026 "NetworkStackBase",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090027 "testables",
28 ],
29 libs: [
30 "android.test.runner",
31 "android.test.base",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090032 "android.test.mock",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090033 ],
34 jni_libs: [
35 // For mockito extended
36 "libdexmakerjvmtiagent",
37 "libstaticjvmtiagent",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090038 // For ApfTest
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090039 "libbacktrace",
40 "libbase",
41 "libbinder",
42 "libbinderthreadstate",
43 "libc++",
Yifan Hong4a55b452019-04-03 18:15:22 -070044 "libcgrouprc",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090045 "libcrypto",
46 "libcutils",
Remi NGUYEN VAN1c88d602019-03-29 14:49:02 +090047 "ld-android",
48 "libdl_android",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090049 "libhidl-gen-utils",
50 "libhidlbase",
51 "libhidltransport",
52 "libhwbinder",
junyulaicd924e52019-01-08 20:04:33 +080053 "libjsoncpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090054 "liblog",
55 "liblzma",
56 "libnativehelper",
Lorenzo Colitti88ddd8822019-05-01 11:54:33 +090057 "libnativehelper_compat_libc++",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090058 "libnetworkstacktestsjni",
paulhue455e2a2019-03-29 17:22:20 +080059 "libnetworkstackutilsjni",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090060 "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",
Lorenzo Colitti81fc3e62019-05-21 19:45:09 +090073 "netd_aidl_interface-V2-cpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090074 ],
75}
76
77cc_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",
Lorenzo Colitti81fc3e62019-05-21 19:45:09 +090095 "netd_aidl_interface-V2-cpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090096 ],
97 static_libs: [
98 "libapf",
99 "libpcap",
100 ],
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +0900101}