blob: 039f6bf791fb02908139c6f3322cb1cc735b09e3 [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",
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090026 "NetworkStackBase",
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090027 "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++",
Yifan Hong654b1e62019-04-03 18:15:22 -070045 "libcgrouprc",
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090046 "libcrypto",
47 "libcutils",
48 "libdexfile",
Remi NGUYEN VAN329c4da2019-03-29 14:49:02 +090049 "ld-android",
50 "libdl_android",
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090051 "libhidl-gen-utils",
52 "libhidlbase",
53 "libhidltransport",
54 "libhwbinder",
junyulai352dc2f2019-01-08 20:04:33 +080055 "libjsoncpp",
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090056 "liblog",
57 "liblzma",
58 "libnativehelper",
Lorenzo Colitti3d680e82019-05-01 11:54:33 +090059 "libnativehelper_compat_libc++",
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090060 "libnetworkstacktestsjni",
Remi NGUYEN VAN995aada2019-04-05 04:44:45 -070061 "libnetworkstackutilsjni",
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +090062 "libpackagelistparser",
63 "libpcre2",
64 "libprocessgroup",
65 "libselinux",
66 "libui",
67 "libutils",
68 "libvintf",
69 "libvndksupport",
70 "libtinyxml2",
71 "libunwindstack",
72 "libutilscallstack",
73 "libziparchive",
74 "libz",
75 "netd_aidl_interface-cpp",
76 ],
77}
78
79cc_library_shared {
80 name: "libnetworkstacktestsjni",
81 srcs: [
82 "jni/**/*.cpp"
83 ],
84 cflags: [
85 "-Wall",
86 "-Wextra",
87 "-Werror",
88 ],
89 include_dirs: [
90 "hardware/google/apf",
91 ],
92 shared_libs: [
93 "libbinder",
94 "liblog",
95 "libcutils",
96 "libnativehelper",
97 "netd_aidl_interface-cpp",
98 ],
99 static_libs: [
100 "libapf",
101 "libpcap",
102 ],
Remi NGUYEN VAN3c600a12019-01-10 19:12:46 +0900103}