1// 2// Copyright (C) 2016 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_0TargetTestUtil", 28 defaults: ["VtsHalTargetTestDefaults"], 29 srcs: [ 30 "wifi_hidl_call_util_selftest.cpp", 31 "wifi_hidl_test.cpp", 32 "wifi_hidl_test_utils.cpp", 33 ], 34 export_include_dirs: [ 35 ".", 36 ], 37 shared_libs: [ 38 "libnativehelper", 39 ], 40 static_libs: [ 41 "android.hardware.wifi@1.0", 42 "android.hardware.wifi@1.3", 43 "android.hardware.wifi@1.5", 44 "libwifi-system-iface", 45 ], 46} 47 48cc_test { 49 name: "VtsHalWifiV1_0TargetTest", 50 defaults: ["VtsHalTargetTestDefaults"], 51 tidy_timeout_srcs: [ 52 "wifi_chip_hidl_test.cpp", 53 ], 54 srcs: [ 55 "wifi_chip_hidl_test.cpp", 56 "wifi_p2p_iface_hidl_test.cpp", 57 "wifi_rtt_controller_hidl_test.cpp", 58 "wifi_sta_iface_hidl_test.cpp", 59 ], 60 static_libs: [ 61 "VtsHalWifiV1_0TargetTestUtil", 62 "android.hardware.wifi@1.0", 63 "android.hardware.wifi@1.1", 64 "android.hardware.wifi@1.2", 65 "android.hardware.wifi@1.3", 66 "android.hardware.wifi@1.4", 67 "android.hardware.wifi@1.5", 68 "libwifi-system-iface", 69 ], 70 test_suites: [ 71 "general-tests", 72 "vts", 73 ], 74} 75 76// These tests are split out so that they can be conditioned on presence of the 77// "android.hardware.wifi.aware" feature. 78cc_test { 79 name: "VtsHalWifiNanV1_0TargetTest", 80 defaults: ["VtsHalTargetTestDefaults"], 81 srcs: [ 82 "wifi_chip_hidl_nan_test.cpp", 83 "wifi_nan_iface_hidl_test.cpp", 84 ], 85 static_libs: [ 86 "VtsHalWifiV1_0TargetTestUtil", 87 "android.hardware.wifi@1.0", 88 "android.hardware.wifi@1.1", 89 "android.hardware.wifi@1.2", 90 "android.hardware.wifi@1.3", 91 "android.hardware.wifi@1.4", 92 "android.hardware.wifi@1.5", 93 "libwifi-system-iface", 94 ], 95 test_suites: [ 96 "general-tests", 97 "vts", 98 ], 99} 100 101// These tests are split out so that they can be conditioned on presence of 102// the hostapd HAL, which indicates SoftAP support. 103cc_test { 104 name: "VtsHalWifiApV1_0TargetTest", 105 defaults: ["VtsHalTargetTestDefaults"], 106 srcs: [ 107 "wifi_ap_iface_hidl_test.cpp", 108 "wifi_chip_hidl_ap_test.cpp", 109 ], 110 static_libs: [ 111 "VtsHalWifiV1_0TargetTestUtil", 112 "android.hardware.wifi@1.0", 113 "android.hardware.wifi.hostapd@1.0", 114 "libwifi-system-iface", 115 ], 116 disable_framework: true, 117 test_suites: [ 118 "general-tests", 119 "vts", 120 ], 121} 122