blob: 4a09b3e205a6986fc092212e0bed4a86398e1402 [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"],
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090021 resource_dirs: ["res"],
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090022 static_libs: [
23 "android-support-test",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090024 "frameworks-base-testutils",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090025 "mockito-target-extended-minus-junit4",
26 "NetworkStackLib",
27 "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",
57 "libpackagelistparser",
58 "libpcre2",
59 "libprocessgroup",
60 "libselinux",
61 "libui",
62 "libutils",
63 "libvintf",
64 "libvndksupport",
65 "libtinyxml2",
66 "libunwindstack",
67 "libutilscallstack",
68 "libziparchive",
69 "libz",
70 "netd_aidl_interface-cpp",
71 ],
72}
73
74cc_library_shared {
75 name: "libnetworkstacktestsjni",
76 srcs: [
77 "jni/**/*.cpp"
78 ],
79 cflags: [
80 "-Wall",
81 "-Wextra",
82 "-Werror",
83 ],
84 include_dirs: [
85 "hardware/google/apf",
86 ],
87 shared_libs: [
88 "libbinder",
89 "liblog",
90 "libcutils",
91 "libnativehelper",
92 "netd_aidl_interface-cpp",
93 ],
94 static_libs: [
95 "libapf",
96 "libpcap",
97 ],
98
99}