blob: e64f284819822e783c3d8d9db18f4dd6f195210d [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"],
Dan Shib350df22019-02-14 11:42:02 -080021 test_suites: ["device-tests"],
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090022 resource_dirs: ["res"],
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090023 static_libs: [
Brett Chabot8091d9e2019-02-26 14:52:33 -080024 "androidx.test.rules",
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",
junyulai352dc2f2019-01-08 20:04:33 +080052 "libjsoncpp",
Remi NGUYEN VAN3c600a12019-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}