blob: 5c7b514834cb7463797e91eeefb6fc632507cb84 [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: [
24 "android-support-test",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090025 "frameworks-base-testutils",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090026 "mockito-target-extended-minus-junit4",
27 "NetworkStackLib",
28 "testables",
29 ],
30 libs: [
31 "android.test.runner",
32 "android.test.base",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090033 "android.test.mock",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090034 ],
35 jni_libs: [
36 // For mockito extended
37 "libdexmakerjvmtiagent",
38 "libstaticjvmtiagent",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090039 // For ApfTest
40 "libartbase",
41 "libbacktrace",
42 "libbase",
43 "libbinder",
44 "libbinderthreadstate",
45 "libc++",
46 "libcrypto",
47 "libcutils",
48 "libdexfile",
49 "libhidl-gen-utils",
50 "libhidlbase",
51 "libhidltransport",
52 "libhwbinder",
junyulaicd924e52019-01-08 20:04:33 +080053 "libjsoncpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090054 "liblog",
55 "liblzma",
56 "libnativehelper",
57 "libnetworkstacktestsjni",
58 "libpackagelistparser",
59 "libpcre2",
60 "libprocessgroup",
61 "libselinux",
62 "libui",
63 "libutils",
64 "libvintf",
65 "libvndksupport",
66 "libtinyxml2",
67 "libunwindstack",
68 "libutilscallstack",
69 "libziparchive",
70 "libz",
71 "netd_aidl_interface-cpp",
72 ],
73}
74
75cc_library_shared {
76 name: "libnetworkstacktestsjni",
77 srcs: [
78 "jni/**/*.cpp"
79 ],
80 cflags: [
81 "-Wall",
82 "-Wextra",
83 "-Werror",
84 ],
85 include_dirs: [
86 "hardware/google/apf",
87 ],
88 shared_libs: [
89 "libbinder",
90 "liblog",
91 "libcutils",
92 "libnativehelper",
93 "netd_aidl_interface-cpp",
94 ],
95 static_libs: [
96 "libapf",
97 "libpcap",
98 ],
99
100}