blob: fe3c1e8eb3e5cd5de40e3af499b133fe7587b431 [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++",
Yifan Hong4a55b452019-04-03 18:15:22 -070045 "libcgrouprc",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090046 "libcrypto",
47 "libcutils",
48 "libdexfile",
Remi NGUYEN VAN1c88d602019-03-29 14:49:02 +090049 "ld-android",
50 "libdl_android",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090051 "libhidl-gen-utils",
52 "libhidlbase",
53 "libhidltransport",
54 "libhwbinder",
junyulaicd924e52019-01-08 20:04:33 +080055 "libjsoncpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090056 "liblog",
57 "liblzma",
58 "libnativehelper",
59 "libnetworkstacktestsjni",
paulhue455e2a2019-03-29 17:22:20 +080060 "libnetworkstackutilsjni",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090061 "libpackagelistparser",
62 "libpcre2",
63 "libprocessgroup",
64 "libselinux",
65 "libui",
66 "libutils",
67 "libvintf",
68 "libvndksupport",
69 "libtinyxml2",
70 "libunwindstack",
71 "libutilscallstack",
72 "libziparchive",
73 "libz",
74 "netd_aidl_interface-cpp",
75 ],
76}
77
78cc_library_shared {
79 name: "libnetworkstacktestsjni",
80 srcs: [
81 "jni/**/*.cpp"
82 ],
83 cflags: [
84 "-Wall",
85 "-Wextra",
86 "-Werror",
87 ],
88 include_dirs: [
89 "hardware/google/apf",
90 ],
91 shared_libs: [
92 "libbinder",
93 "liblog",
94 "libcutils",
95 "libnativehelper",
96 "netd_aidl_interface-cpp",
97 ],
98 static_libs: [
99 "libapf",
100 "libpcap",
101 ],
102
103}