blob: 8945a1cbcc1532e6a080eff03216e3260401deaf [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
39 "libartbase",
40 "libbacktrace",
41 "libbase",
42 "libbinder",
43 "libbinderthreadstate",
44 "libc++",
45 "libcrypto",
46 "libcutils",
47 "libdexfile",
48 "libhidl-gen-utils",
49 "libhidlbase",
50 "libhidltransport",
51 "libhwbinder",
junyulaicd924e52019-01-08 20:04:33 +080052 "libjsoncpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090053 "liblog",
54 "liblzma",
55 "libnativehelper",
56 "libnetworkstacktestsjni",
paulhue455e2a2019-03-29 17:22:20 +080057 "libnetworkstackutilsjni",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090058 "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
75cc_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}