1// Copyright (C) 2020 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 15// Make test APK 16// ============================================================ 17 18package { 19 default_team: "trendy_team_fwk_wifi_hal", 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23android_test { 24 name: "FrameworksWifiApiTests", 25 26 defaults: ["framework-wifi-test-defaults"], 27 28 min_sdk_version: "30", 29 target_sdk_version: "33", 30 compile_multilib: "both", 31 srcs: ["**/*.java"], 32 33 jacoco: { 34 include_filter: ["android.net.wifi.*"], 35 // TODO(b/147521214) need to exclude test classes 36 exclude_filter: [], 37 }, 38 39 static_libs: [ 40 "androidx.test.rules", 41 "core-test-rules", 42 "frameworks-base-testutils", 43 "guava", 44 "wifi-modules-utils", 45 "net-tests-utils", 46 "net-utils-framework-common", 47 "truth", 48 "wifi_aconfig_flags_lib", 49 ], 50 51 libs: [ 52 "android.test.runner.stubs", 53 "android.test.base.stubs", 54 ], 55 56 // These are required for mockito static/final mocking 57 // mockito-target-extended-minus-junit4 is already included in frameworks-base-testutils 58 jni_libs: [ 59 "libdexmakerjvmtiagent", 60 "libstaticjvmtiagent", 61 ], 62 63 test_suites: [ 64 "general-tests", 65 "mts-wifi", 66 ], 67 68 // static libs used by both framework-wifi & FrameworksWifiApiTests. Need to rename test usage 69 // to a different package name to prevent conflict with the copy in production code. 70 jarjar_rules: "test-jarjar-rules.txt", 71} 72