Remi NGUYEN VAN | be2a07f | 2021-03-29 17:09:13 +0900 | [diff] [blame] | 1 | // 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 Badour | 9802148 | 2021-03-30 22:55:10 -0700 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Remi NGUYEN VAN | be2a07f | 2021-03-29 17:09:13 +0900 | [diff] [blame] | 19 | java_library { |
| 20 | name: "net-tests-utils", |
| 21 | srcs: [ |
| 22 | "devicetests/**/*.java", |
| 23 | "devicetests/**/*.kt", |
| 24 | ], |
Remi NGUYEN VAN | 2202e61 | 2021-03-30 07:56:39 +0000 | [diff] [blame] | 25 | defaults: [ |
| 26 | "framework-connectivity-test-defaults", |
| 27 | "lib_mockito_extended" |
| 28 | ], |
Remi NGUYEN VAN | be2a07f | 2021-03-29 17:09:13 +0900 | [diff] [blame] | 29 | libs: [ |
| 30 | "androidx.annotation_annotation", |
| 31 | ], |
| 32 | static_libs: [ |
| 33 | "androidx.test.ext.junit", |
| 34 | "kotlin-reflect", |
| 35 | "libnanohttpd", |
| 36 | "net-tests-utils-host-device-common", |
| 37 | "net-utils-device-common", |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 38 | "net-utils-device-common-netlink", |
Chiachang Wang | 40803d4 | 2021-06-21 11:52:44 +0800 | [diff] [blame] | 39 | "modules-utils-build_system", |
Remi NGUYEN VAN | be2a07f | 2021-03-29 17:09:13 +0900 | [diff] [blame] | 40 | ], |
| 41 | } |
| 42 | |
| 43 | java_library { |
| 44 | // Consider using net-tests-utils instead if writing device code. |
| 45 | // That library has a lot more useful tools into it for users that |
| 46 | // work on Android and includes this lib. |
| 47 | name: "net-tests-utils-host-device-common", |
| 48 | srcs: [ |
| 49 | "hostdevice/**/*.java", |
| 50 | "hostdevice/**/*.kt", |
| 51 | ], |
| 52 | host_supported: true, |
| 53 | visibility: [ |
| 54 | "//frameworks/libs/net/common/tests:__subpackages__", |
| 55 | "//frameworks/libs/net/client-libs/tests:__subpackages__", |
| 56 | ], |
Chalard Jean | 5872cb8 | 2021-09-08 17:56:57 +0900 | [diff] [blame] | 57 | libs: [ |
| 58 | "jsr305", |
| 59 | ], |
Remi NGUYEN VAN | be2a07f | 2021-03-29 17:09:13 +0900 | [diff] [blame] | 60 | static_libs: [ |
| 61 | "kotlin-test" |
| 62 | ] |
| 63 | } |