blob: 45fa2dc2f3833a3751ca22764f98700ea788bd0a [file] [log] [blame]
Remi NGUYEN VAN0e3d09232018-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 VAN3c600a12019-01-10 19:12:46 +090019 certificate: "platform",
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090020 srcs: ["src/**/*.java"],
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090021 resource_dirs: ["res"],
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090022 static_libs: [
23 "android-support-test",
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090024 "frameworks-base-testutils",
Remi NGUYEN VAN0e3d09232018-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 VAN3c600a12019-01-10 19:12:46 +090032 "android.test.mock",
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090033 ],
34 jni_libs: [
35 // For mockito extended
36 "libdexmakerjvmtiagent",
37 "libstaticjvmtiagent",
Remi NGUYEN VAN3c600a12019-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",
52 "liblog",
53 "liblzma",
54 "libnativehelper",
55 "libnetworkstacktestsjni",
56 "libpackagelistparser",
57 "libpcre2",
58 "libprocessgroup",
59 "libselinux",
60 "libui",
61 "libutils",
62 "libvintf",
63 "libvndksupport",
64 "libtinyxml2",
65 "libunwindstack",
66 "libutilscallstack",
67 "libziparchive",
68 "libz",
69 "netd_aidl_interface-cpp",
70 ],
71}
72
73cc_library_shared {
74 name: "libnetworkstacktestsjni",
75 srcs: [
76 "jni/**/*.cpp"
77 ],
78 cflags: [
79 "-Wall",
80 "-Wextra",
81 "-Werror",
82 ],
83 include_dirs: [
84 "hardware/google/apf",
85 ],
86 shared_libs: [
87 "libbinder",
88 "liblog",
89 "libcutils",
90 "libnativehelper",
91 "netd_aidl_interface-cpp",
92 ],
93 static_libs: [
94 "libapf",
95 "libpcap",
96 ],
97
98}