1// 2// Copyright (C) 2023 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_fwk_thread_network", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22android_test { 23 name: "ThreadNetworkUnitTests", 24 min_sdk_version: "33", 25 sdk_version: "module_current", 26 manifest: "AndroidManifest.xml", 27 test_config: "AndroidTest.xml", 28 srcs: [ 29 "src/**/*.java", 30 ], 31 test_suites: [ 32 "general-tests", 33 "mts-tethering", 34 ], 35 static_libs: [ 36 "androidx.test.rules", 37 "frameworks-base-testutils", 38 "framework-connectivity-pre-jarjar", 39 "framework-connectivity-t-pre-jarjar", 40 "framework-location.stubs.module_lib", 41 "guava", 42 "guava-android-testlib", 43 "mockito-target-extended-minus-junit4", 44 "net-tests-utils", 45 "ot-daemon-aidl-java", 46 "ot-daemon-testing", 47 "service-connectivity-pre-jarjar", 48 "service-thread-pre-jarjar", 49 "truth", 50 "service-thread-pre-jarjar", 51 ], 52 libs: [ 53 "android.test.base", 54 "android.test.runner", 55 "ServiceConnectivityResources", 56 "framework-wifi", 57 ], 58 jni_libs: [ 59 "libservice-thread-jni", 60 61 // these are needed for Extended Mockito 62 "libdexmakerjvmtiagent", 63 "libstaticjvmtiagent", 64 ], 65 jni_uses_platform_apis: true, 66 jarjar_rules: ":connectivity-jarjar-rules", 67 // Test coverage system runs on different devices. Need to 68 // compile for all architectures. 69 compile_multilib: "both", 70} 71