blob: 03bcf95fc7197109577d32ecce2951abf840a670 [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",
Chalard Jean3674b552019-06-03 13:37:08 +090020 srcs: ["src/**/*.java", "src/**/*.kt"],
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",
Chalard Jean3c9f6872019-07-03 12:31:05 +090025 "kotlin-reflect",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090026 "mockito-target-extended-minus-junit4",
Chalard Jean0d0cc8c2019-05-28 16:48:32 +090027 "net-tests-utils",
Remi NGUYEN VAN99645762019-07-11 14:33:15 +090028 "NetworkStackApiCurrentLib",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090029 "testables",
30 ],
31 libs: [
32 "android.test.runner",
33 "android.test.base",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090034 "android.test.mock",
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090035 ],
Xiao Ma53ed1ac2019-06-03 15:48:39 +090036 defaults: ["libnetworkstackutilsjni_deps"],
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090037 jni_libs: [
38 // For mockito extended
39 "libdexmakerjvmtiagent",
40 "libstaticjvmtiagent",
Xiao Ma53ed1ac2019-06-03 15:48:39 +090041 "libnetworkstackutilsjni",
42 ],
43}
44
45// Additional dependencies of libnetworkstackutilsjni that are not provided by the system when
46// running as a test application.
47// Using java_defaults as jni_libs does not support filegroups.
48java_defaults {
49 name: "libnetworkstackutilsjni_deps",
50 jni_libs: [
51 "libartbase",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090052 "libbacktrace",
53 "libbase",
54 "libbinder",
55 "libbinderthreadstate",
56 "libc++",
Yifan Hong4a55b452019-04-03 18:15:22 -070057 "libcgrouprc",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090058 "libcrypto",
59 "libcutils",
Remi NGUYEN VAN1c88d602019-03-29 14:49:02 +090060 "ld-android",
61 "libdl_android",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090062 "libhidl-gen-utils",
63 "libhidlbase",
junyulaicd924e52019-01-08 20:04:33 +080064 "libjsoncpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090065 "liblog",
66 "liblzma",
67 "libnativehelper",
Lorenzo Colitti88ddd8822019-05-01 11:54:33 +090068 "libnativehelper_compat_libc++",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090069 "libnetworkstacktestsjni",
70 "libpackagelistparser",
71 "libpcre2",
72 "libprocessgroup",
73 "libselinux",
74 "libui",
75 "libutils",
76 "libvintf",
77 "libvndksupport",
78 "libtinyxml2",
79 "libunwindstack",
80 "libutilscallstack",
81 "libziparchive",
82 "libz",
Lorenzo Colitti81fc3e62019-05-21 19:45:09 +090083 "netd_aidl_interface-V2-cpp",
Remi NGUYEN VAN4a2eb872019-01-10 19:12:46 +090084 ],
85}