blob: 6d9414f8aa59d493ef574d896c1dbefe0e95efc2 [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",
Chiachang Wang40803d42021-06-21 11:52:44 +080035 "modules-utils-build_system",
Remi NGUYEN VANbe2a07f2021-03-29 17:09:13 +090036 ],
37}
38
39java_library {
40 // Consider using net-tests-utils instead if writing device code.
41 // That library has a lot more useful tools into it for users that
42 // work on Android and includes this lib.
43 name: "net-tests-utils-host-device-common",
44 srcs: [
45 "hostdevice/**/*.java",
46 "hostdevice/**/*.kt",
47 ],
48 host_supported: true,
49 visibility: [
50 "//frameworks/libs/net/common/tests:__subpackages__",
51 "//frameworks/libs/net/client-libs/tests:__subpackages__",
52 ],
53 static_libs: [
54 "kotlin-test"
55 ]
56}