• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17cc_library_static {
18    name: "VtsHalWifiV1_0TargetTestUtil",
19    defaults: ["VtsHalTargetTestDefaults"],
20    srcs: [
21        "wifi_hidl_call_util_selftest.cpp",
22        "wifi_hidl_test.cpp",
23        "wifi_hidl_test_utils.cpp",
24    ],
25    export_include_dirs: [
26        ".",
27    ],
28    shared_libs: [
29        "libnativehelper",
30    ],
31    static_libs: [
32        "android.hardware.wifi@1.0",
33        "libwifi-system-iface",
34    ],
35}
36
37cc_test {
38    name: "VtsHalWifiV1_0TargetTest",
39    defaults: ["VtsHalTargetTestDefaults"],
40    srcs: [
41        "wifi_chip_hidl_test.cpp",
42        "wifi_p2p_iface_hidl_test.cpp",
43        "wifi_rtt_controller_hidl_test.cpp",
44        "wifi_sta_iface_hidl_test.cpp",
45    ],
46    static_libs: [
47        "VtsHalWifiV1_0TargetTestUtil",
48        "android.hardware.wifi@1.0",
49        "android.hardware.wifi@1.1",
50        "android.hardware.wifi@1.2",
51        "android.hardware.wifi@1.3",
52        "libwifi-system-iface",
53    ],
54    test_suites: [
55        "general-tests",
56        "vts",
57    ],
58}
59
60// These tests are split out so that they can be conditioned on presence of the
61// "android.hardware.wifi.aware" feature.
62cc_test {
63    name: "VtsHalWifiNanV1_0TargetTest",
64    defaults: ["VtsHalTargetTestDefaults"],
65    srcs: [
66        "wifi_chip_hidl_nan_test.cpp",
67        "wifi_nan_iface_hidl_test.cpp",
68    ],
69    static_libs: [
70        "VtsHalWifiV1_0TargetTestUtil",
71        "android.hardware.wifi@1.0",
72        "libwifi-system-iface",
73    ],
74    test_suites: [
75        "general-tests",
76        "vts",
77    ],
78}
79
80// These tests are split out so that they can be conditioned on presence of
81// the hostapd HAL, which indicates SoftAP support.
82cc_test {
83    name: "VtsHalWifiApV1_0TargetTest",
84    defaults: ["VtsHalTargetTestDefaults"],
85    srcs: [
86        "wifi_ap_iface_hidl_test.cpp",
87        "wifi_chip_hidl_ap_test.cpp",
88    ],
89    static_libs: [
90        "VtsHalWifiV1_0TargetTestUtil",
91        "android.hardware.wifi@1.0",
92        "libwifi-system-iface",
93    ],
94    test_suites: [
95        "general-tests",
96        "vts",
97    ],
98}
99