blob: 89aa1362145fc68d7453f4cab8cd0e5729135694 [file] [log] [blame]
Remi NGUYEN VANbe2a07f2021-03-29 17:09:13 +09001// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour5aacbaf2021-03-31 19:53:56 -070015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Remi NGUYEN VANbe2a07f2021-03-29 17:09:13 +090019java_library {
20 name: "net-tests-utils",
21 srcs: [
22 "devicetests/**/*.java",
23 "devicetests/**/*.kt",
24 ],
25 defaults: ["lib_mockito_extended"],
26 libs: [
27 "androidx.annotation_annotation",
28 ],
29 static_libs: [
30 "androidx.test.ext.junit",
31 "kotlin-reflect",
32 "libnanohttpd",
33 "net-tests-utils-host-device-common",
34 "net-utils-device-common",
Xiao Ma57b34422021-07-01 13:57:02 +000035 "net-utils-device-common-netlink",
Chiachang Wang40803d42021-06-21 11:52:44 +080036 "modules-utils-build_system",
Remi NGUYEN VANbe2a07f2021-03-29 17:09:13 +090037 ],
38}
39
40java_library {
41 // Consider using net-tests-utils instead if writing device code.
42 // That library has a lot more useful tools into it for users that
43 // work on Android and includes this lib.
44 name: "net-tests-utils-host-device-common",
45 srcs: [
46 "hostdevice/**/*.java",
47 "hostdevice/**/*.kt",
48 ],
49 host_supported: true,
50 visibility: [
51 "//frameworks/libs/net/common/tests:__subpackages__",
52 "//frameworks/libs/net/client-libs/tests:__subpackages__",
53 ],
54 static_libs: [
55 "kotlin-test"
56 ]
57}