blob: bea5e5a317662fd0bfb36980c1ee19b518a8ab70 [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
15java_library {
16 name: "net-tests-utils",
17 srcs: [
18 "devicetests/**/*.java",
19 "devicetests/**/*.kt",
20 ],
21 defaults: ["lib_mockito_extended"],
22 libs: [
23 "androidx.annotation_annotation",
24 ],
25 static_libs: [
26 "androidx.test.ext.junit",
27 "kotlin-reflect",
28 "libnanohttpd",
29 "net-tests-utils-host-device-common",
30 "net-utils-device-common",
31 ],
32}
33
34java_library {
35 // Consider using net-tests-utils instead if writing device code.
36 // That library has a lot more useful tools into it for users that
37 // work on Android and includes this lib.
38 name: "net-tests-utils-host-device-common",
39 srcs: [
40 "hostdevice/**/*.java",
41 "hostdevice/**/*.kt",
42 ],
43 host_supported: true,
44 visibility: [
45 "//frameworks/libs/net/common/tests:__subpackages__",
46 "//frameworks/libs/net/client-libs/tests:__subpackages__",
47 ],
48 static_libs: [
49 "kotlin-test"
50 ]
51}