1// 2// Copyright (C) 2020 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 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "hardware_interfaces_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["hardware_interfaces_license"], 24} 25 26cc_library_static { 27 name: "VtsHalWifiV1_5TargetTestUtil", 28 defaults: ["VtsHalTargetTestDefaults"], 29 srcs: [ 30 "wifi_hidl_test_utils_1_5.cpp", 31 ], 32 export_include_dirs: [ 33 ".", 34 ], 35 shared_libs: [ 36 "libnativehelper", 37 ], 38 static_libs: [ 39 "VtsHalWifiV1_0TargetTestUtil", 40 "android.hardware.wifi@1.0", 41 "android.hardware.wifi@1.3", 42 "android.hardware.wifi@1.5", 43 "libwifi-system-iface", 44 ], 45} 46 47cc_test { 48 name: "VtsHalWifiV1_5TargetTest", 49 defaults: ["VtsHalTargetTestDefaults"], 50 srcs: [ 51 "wifi_chip_hidl_test.cpp", 52 "wifi_sta_iface_hidl_test.cpp", 53 ], 54 static_libs: [ 55 "VtsHalWifiV1_0TargetTestUtil", 56 "android.hardware.wifi@1.0", 57 "android.hardware.wifi@1.1", 58 "android.hardware.wifi@1.2", 59 "android.hardware.wifi@1.3", 60 "android.hardware.wifi@1.4", 61 "android.hardware.wifi@1.5", 62 "libwifi-system-iface", 63 ], 64 test_suites: [ 65 "general-tests", 66 "vts", 67 ], 68} 69 70// These tests are split out so that they can be conditioned on presence of the 71// "android.hardware.wifi.aware" feature. 72cc_test { 73 name: "VtsHalWifiNanV1_5TargetTest", 74 defaults: ["VtsHalTargetTestDefaults"], 75 srcs: [ 76 "wifi_nan_iface_hidl_test.cpp", 77 ], 78 static_libs: [ 79 "VtsHalWifiV1_0TargetTestUtil", 80 "android.hardware.wifi@1.0", 81 "android.hardware.wifi@1.1", 82 "android.hardware.wifi@1.2", 83 "android.hardware.wifi@1.3", 84 "android.hardware.wifi@1.4", 85 "android.hardware.wifi@1.5", 86 "libwifi-system-iface", 87 ], 88 test_suites: [ 89 "general-tests", 90 "vts", 91 ], 92} 93 94// SoftAP-specific tests, similar to VtsHalWifiApV1_0TargetTest. 95cc_test { 96 name: "VtsHalWifiApV1_5TargetTest", 97 defaults: ["VtsHalTargetTestDefaults"], 98 srcs: [ 99 "wifi_chip_hidl_ap_test.cpp", 100 "wifi_ap_iface_hidl_test.cpp", 101 ], 102 static_libs: [ 103 "VtsHalWifiV1_0TargetTestUtil", 104 "VtsHalWifiV1_5TargetTestUtil", 105 "android.hardware.wifi@1.0", 106 "android.hardware.wifi@1.1", 107 "android.hardware.wifi@1.2", 108 "android.hardware.wifi@1.3", 109 "android.hardware.wifi@1.4", 110 "android.hardware.wifi@1.5", 111 "libwifi-system-iface", 112 ], 113 test_suites: [ 114 "general-tests", 115 "vts", 116 ], 117} 118