1//
2// Copyright (C) 2022 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_6TargetTestUtil",
28    defaults: ["VtsHalTargetTestDefaults"],
29    srcs: [
30        "wifi_hidl_test_utils_1_6.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        "android.hardware.wifi@1.6",
44        "libwifi-system-iface",
45    ],
46}
47
48cc_test {
49    name: "VtsHalWifiV1_6TargetTest",
50    defaults: ["VtsHalTargetTestDefaults"],
51    srcs: [
52        "wifi_chip_hidl_test.cpp",
53        "wifi_sta_iface_hidl_test.cpp",
54    ],
55    static_libs: [
56        "VtsHalWifiV1_0TargetTestUtil",
57        "android.hardware.wifi@1.0",
58        "android.hardware.wifi@1.1",
59        "android.hardware.wifi@1.2",
60        "android.hardware.wifi@1.3",
61        "android.hardware.wifi@1.4",
62        "android.hardware.wifi@1.5",
63        "android.hardware.wifi@1.6",
64        "libwifi-system-iface",
65    ],
66    test_suites: [
67        "general-tests",
68        "vts",
69    ],
70}
71
72// These tests are split out so that they can be conditioned on presence of the
73// "android.hardware.wifi.rtt" feature.
74cc_test {
75    name: "VtsHalWifiRttV1_6TargetTest",
76    defaults: ["VtsHalTargetTestDefaults"],
77    srcs: [
78        "wifi_rtt_controller_hidl_test.cpp",
79    ],
80    static_libs: [
81        "VtsHalWifiV1_0TargetTestUtil",
82        "android.hardware.wifi@1.0",
83        "android.hardware.wifi@1.1",
84        "android.hardware.wifi@1.2",
85        "android.hardware.wifi@1.3",
86        "android.hardware.wifi@1.4",
87        "android.hardware.wifi@1.5",
88        "android.hardware.wifi@1.6",
89        "libwifi-system-iface",
90    ],
91    test_suites: [
92        "general-tests",
93        "vts",
94    ],
95}
96
97// These tests are split out so that they can be conditioned on presence of the
98// "android.hardware.wifi.aware" feature.
99cc_test {
100    name: "VtsHalWifiNanV1_6TargetTest",
101    defaults: ["VtsHalTargetTestDefaults"],
102    srcs: [
103        "wifi_nan_iface_hidl_test.cpp",
104    ],
105    static_libs: [
106        "VtsHalWifiV1_0TargetTestUtil",
107        "android.hardware.wifi@1.0",
108        "android.hardware.wifi@1.1",
109        "android.hardware.wifi@1.2",
110        "android.hardware.wifi@1.3",
111        "android.hardware.wifi@1.4",
112        "android.hardware.wifi@1.5",
113        "android.hardware.wifi@1.6",
114        "libwifi-system-iface",
115    ],
116    test_suites: [
117        "general-tests",
118        "vts",
119    ],
120}
121