xref: /aosp_15_r20/external/wpa_supplicant_8/hostapd/aidl/tests/Android.bp (revision 03f9172ca588f91df233974f4258bab95191f931)
1// Copyright (C) 2024 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_fwk_wifi_hal",
17    default_applicable_licenses: [
18        "external_wpa_supplicant_8_license",
19        "external_wpa_supplicant_8_hostapd_license",
20    ],
21}
22
23cc_test {
24    name: "libhostapd_aidl_bp_unittest",
25    defaults: [
26        "hostapd_cflags_defaults",
27    ],
28    require_root: true,
29    soc_specific: true,
30    srcs: [
31        "unittests.cpp",
32    ],
33    shared_libs: [
34        "android.hardware.wifi.hostapd-V3-ndk",
35        "libbinder_ndk",
36        "libbase",
37        "libutils",
38        "liblog",
39    ],
40    static_libs: [
41        "libgtest",
42    ],
43    header_libs: [
44        "hostapd_headers",
45        "libhostapd_aidl_headers",
46    ],
47    cppflags: [
48        "-DANDROID_HOSTAPD_UNITTEST",
49    ],
50    test_options: {
51        unit_test: true,
52    },
53    test_suites: [
54        "general-tests",
55    ],
56}
57