• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Bluetooth test suite for target
2package {
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "system_bt_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["system_bt_license"],
9}
10
11cc_defaults {
12    name: "net_test_defaults",
13    defaults: ["fluoride_defaults"],
14    include_dirs: [
15        "frameworks/av/media/libaaudio/include",
16        "packages/modules/Bluetooth/system",
17        "packages/modules/Bluetooth/system/bta/dm",
18        "packages/modules/Bluetooth/system/bta/include",
19        "packages/modules/Bluetooth/system/bta/sys",
20        "packages/modules/Bluetooth/system/btif/avrcp",
21        "packages/modules/Bluetooth/system/btif/co",
22        "packages/modules/Bluetooth/system/device/include",
23        "packages/modules/Bluetooth/system/embdrv/sbc/decoder/include",
24        "packages/modules/Bluetooth/system/embdrv/sbc/encoder/include",
25        "packages/modules/Bluetooth/system/gd",
26        "packages/modules/Bluetooth/system/include",
27        "packages/modules/Bluetooth/system/stack/a2dp",
28        "packages/modules/Bluetooth/system/stack/avdt",
29        "packages/modules/Bluetooth/system/stack/btm",
30        "packages/modules/Bluetooth/system/stack/include",
31        "packages/modules/Bluetooth/system/stack/l2cap",
32        "packages/modules/Bluetooth/system/udrv/include",
33        "system/libfmq/include",
34        "system/libhwbinder/include",
35    ],
36    srcs: [
37        ":BtaDmSources",
38        ":TestCommonMockFunctions",
39        ":TestMockHci",
40        ":TestMockUdrv",
41        "adapter/bluetooth_test.cc",
42    ],
43    shared_libs: [
44        "libPlatformProperties",
45        "libaaudio",
46        "libbinder",
47        "libbinder_ndk",
48        "libcrypto",
49        "libcutils",
50        "libfmq",
51        "libhidlbase",
52        "liblog",
53        "libstatssocket",
54        "libutils",
55    ],
56    static_libs: [
57        "android.hardware.audio.common@5.0",
58        "android.hardware.bluetooth.a2dp@1.0",
59        "android.hardware.bluetooth.audio@2.0",
60        "android.hardware.bluetooth.audio@2.1",
61        "android.hardware.common-V2-ndk",
62        "android.hardware.common.fmq-V1-ndk",
63        "android.system.suspend-V1-ndk",
64        "android.system.suspend.control-V1-ndk",
65        "avrcp-target-service",
66        "lib-bt-packets",
67        "lib-bt-packets-avrcp",
68        "lib-bt-packets-base",
69        "libFraunhoferAAC",
70        "libaudio-a2dp-hw-utils",
71        "libbluetooth-dumpsys",
72        "libbluetooth-types",
73        "libbluetooth_core_rs",
74        "libbluetooth_core_rs_bridge",
75        "libbluetooth_log",
76        "libbt-audio-asrc",
77        "libbt-audio-hal-interface",
78        "libbt-bta",
79        "libbt-bta-core",
80        "libbt-common",
81        "libbt-hci",
82        "libbt-sbc-decoder",
83        "libbt-sbc-encoder",
84        "libbt-stack",
85        "libbt-stack-core",
86        "libbtcore",
87        "libbtdevice",
88        "libbte",
89        "libbtif",
90        "libbtif-core",
91        "libcom.android.sysprop.bluetooth.wrapped",
92        "libflatbuffers-cpp",
93        "libg722codec",
94        "libgmock",
95        "liblc3",
96        "libopus",
97        "libosi",
98        "libstatslog_bt",
99    ],
100    header_libs: [
101        "libbluetooth_headers",
102        "libhardware_headers",
103    ],
104}
105
106cc_test {
107    name: "net_test_bluetooth",
108    test_suites: ["general-tests"],
109    defaults: [
110        "latest_android_hardware_audio_common_ndk_static",
111        "latest_android_hardware_bluetooth_audio_ndk_static",
112        "latest_android_media_audio_common_types_ndk_static",
113        "mts_defaults",
114        "net_test_defaults",
115    ],
116    srcs: [
117        "adapter/adapter_unittest.cc",
118        "gatt/gatt_test.cc",
119        "gatt/gatt_unittest.cc",
120    ],
121    static_libs: [
122        "libbluetooth-gdx",
123        "libbluetooth_crypto_toolbox",
124        "libbluetooth_gd",
125        "libbluetooth_hci_pdl",
126        "libbluetooth_log",
127        "libbt-btu-main-thread",
128        "libbt-jni-thread",
129        "libbt-platform-protos-lite",
130        "libbt_shim_bridge",
131        "libchrome",
132        "libevent",
133        "libprotobuf-cpp-lite",
134    ],
135    shared_libs: [
136        "libaconfig_storage_read_api_cc",
137        "libbase",
138        "server_configurable_flags",
139    ],
140    generated_headers: [
141        "BluetoothGeneratedDumpsysDataSchema_h",
142    ],
143    target: {
144        android: {
145            static_libs: [
146                "android.hardware.bluetooth@1.0",
147                "android.hardware.bluetooth@1.1",
148                "android.hardware.common-V2-ndk",
149                "android.hardware.common.fmq-V1-ndk",
150            ],
151        },
152        host: {},
153    },
154    cflags: ["-Wno-unused-parameter"],
155}
156