• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "android.hardware.wifi@1.0",
36        "android.hardware.wifi@1.1",
37        "android.hardware.wifi@1.2",
38        "android.hardware.wifi@1.3",
39        "android.hardware.wifi@1.4",
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        "android.hardware.wifi@1.0",
63        "android.hardware.wifi@1.3",
64        "android.hardware.wifi@1.4",
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        "android.hardware.wifi@1.0",
79        "android.hardware.wifi@1.1",
80        "android.hardware.wifi@1.2",
81        "android.hardware.wifi@1.3",
82        "android.hardware.wifi@1.4",
83        "android.hardware.wifi.hostapd@1.0",
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        "android.hardware.wifi@1.0",
104        "android.hardware.wifi@1.1",
105        "android.hardware.wifi@1.2",
106        "android.hardware.wifi@1.3",
107        "android.hardware.wifi@1.4",
108        "android.hardware.wifi@1.5",
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        "android.hardware.wifi@1.0",
128        "android.hardware.wifi@1.1",
129        "android.hardware.wifi@1.2",
130        "android.hardware.wifi@1.3",
131        "android.hardware.wifi@1.4",
132        "libwifi-system-iface",
133    ],
134    test_suites: [
135        "general-tests",
136        "vts",
137    ],
138}
139