| 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 | 5aacbaf | 2021-03-31 19:53:56 -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 | ], | 
|  | 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", | 
|  | 35 | ], | 
|  | 36 | } | 
|  | 37 |  | 
|  | 38 | java_library { | 
|  | 39 | // Consider using net-tests-utils instead if writing device code. | 
|  | 40 | // That library has a lot more useful tools into it for users that | 
|  | 41 | // work on Android and includes this lib. | 
|  | 42 | name: "net-tests-utils-host-device-common", | 
|  | 43 | srcs: [ | 
|  | 44 | "hostdevice/**/*.java", | 
|  | 45 | "hostdevice/**/*.kt", | 
|  | 46 | ], | 
|  | 47 | host_supported: true, | 
|  | 48 | visibility: [ | 
|  | 49 | "//frameworks/libs/net/common/tests:__subpackages__", | 
|  | 50 | "//frameworks/libs/net/client-libs/tests:__subpackages__", | 
|  | 51 | ], | 
|  | 52 | static_libs: [ | 
|  | 53 | "kotlin-test" | 
|  | 54 | ] | 
|  | 55 | } |