xref: /aosp_15_r20/hardware/interfaces/wifi/1.4/vts/functional/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1//
2// Copyright (C) 2019 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_wifi_hal",
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "hardware_interfaces_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27cc_test {
28    name: "VtsHalWifiV1_4TargetTest",
29    defaults: ["VtsHalTargetTestDefaults"],
30    srcs: [
31        "wifi_chip_hidl_test.cpp",
32    ],
33    static_libs: [
34        "VtsHalWifiV1_0TargetTestUtil",
35        "[email protected]",
36        "[email protected]",
37        "[email protected]",
38        "[email protected]",
39        "[email protected]",
40        "libwifi-system-iface",
41    ],
42    test_suites: [
43        "general-tests",
44        "vts",
45    ],
46}
47
48cc_library_static {
49    name: "VtsHalWifiV1_4TargetTestUtil",
50    defaults: ["VtsHalTargetTestDefaults"],
51    srcs: [
52        "wifi_hidl_test_utils_1_4.cpp",
53    ],
54    export_include_dirs: [
55        ".",
56    ],
57    shared_libs: [
58        "libnativehelper",
59    ],
60    static_libs: [
61        "VtsHalWifiV1_0TargetTestUtil",
62        "[email protected]",
63        "[email protected]",
64        "[email protected]",
65        "libwifi-system-iface",
66    ],
67}
68
69// SoftAP-specific tests, similar to VtsHalWifiApV1_0TargetTest.
70cc_test {
71    name: "VtsHalWifiApV1_4TargetTest",
72    defaults: ["VtsHalTargetTestDefaults"],
73    srcs: [
74        "wifi_ap_iface_hidl_test.cpp",
75    ],
76    static_libs: [
77        "VtsHalWifiV1_0TargetTestUtil",
78        "[email protected]",
79        "[email protected]",
80        "[email protected]",
81        "[email protected]",
82        "[email protected]",
83        "[email protected]",
84        "libwifi-system-iface",
85    ],
86    disable_framework: true,
87    test_suites: [
88        "general-tests",
89        "vts",
90    ],
91}
92
93// These tests are split out so that they can be conditioned on presence of the
94// "android.hardware.wifi.aware" feature.
95cc_test {
96    name: "VtsHalWifiNanV1_4TargetTest",
97    defaults: ["VtsHalTargetTestDefaults"],
98    srcs: [
99        "wifi_nan_iface_hidl_test.cpp",
100    ],
101    static_libs: [
102        "VtsHalWifiV1_0TargetTestUtil",
103        "[email protected]",
104        "[email protected]",
105        "[email protected]",
106        "[email protected]",
107        "[email protected]",
108        "[email protected]",
109        "libwifi-system-iface",
110    ],
111    test_suites: [
112        "general-tests",
113        "vts",
114    ],
115}
116
117// These tests are split out so that they can be conditioned on presence of the
118// "android.hardware.wifi.rtt" feature.
119cc_test {
120    name: "VtsHalWifiRttV1_4TargetTest",
121    defaults: ["VtsHalTargetTestDefaults"],
122    srcs: [
123        "wifi_rtt_controller_hidl_test.cpp",
124    ],
125    static_libs: [
126        "VtsHalWifiV1_0TargetTestUtil",
127        "[email protected]",
128        "[email protected]",
129        "[email protected]",
130        "[email protected]",
131        "[email protected]",
132        "libwifi-system-iface",
133    ],
134    test_suites: [
135        "general-tests",
136        "vts",
137    ],
138}
139