• 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/embdrv/sbc/decoder/include",
23        "packages/modules/Bluetooth/system/embdrv/sbc/encoder/include",
24        "packages/modules/Bluetooth/system/gd",
25        "packages/modules/Bluetooth/system/include",
26        "packages/modules/Bluetooth/system/stack/a2dp",
27        "packages/modules/Bluetooth/system/stack/avdt",
28        "packages/modules/Bluetooth/system/stack/btm",
29        "packages/modules/Bluetooth/system/stack/include",
30        "packages/modules/Bluetooth/system/stack/l2cap",
31        "packages/modules/Bluetooth/system/udrv/include",
32        "system/libfmq/include",
33        "system/libhwbinder/include",
34    ],
35    srcs: [
36        ":BtaDmSources",
37        ":TestCommonMockFunctions",
38        ":TestMockHci",
39        ":TestMockUdrv",
40        "adapter/bluetooth_test.cc",
41    ],
42    shared_libs: [
43        "libPlatformProperties",
44        "libaaudio",
45        "libbinder",
46        "libbinder_ndk",
47        "libcrypto",
48        "libcutils",
49        "libfmq",
50        "libhidlbase",
51        "liblog",
52        "libstatssocket",
53        "libutils",
54    ],
55    static_libs: [
56        "android.hardware.audio.common@5.0",
57        "android.hardware.bluetooth.audio@2.0",
58        "android.hardware.bluetooth.audio@2.1",
59        "android.hardware.common-V2-ndk",
60        "android.hardware.common.fmq-V1-ndk",
61        "android.system.suspend-V1-ndk",
62        "android.system.suspend.control-V1-ndk",
63        "avrcp-target-service",
64        "lib-bt-packets",
65        "lib-bt-packets-avrcp",
66        "lib-bt-packets-base",
67        "libFraunhoferAAC",
68        "libbluetooth-types",
69        "libbluetooth_core_rs",
70        "libbluetooth_core_rs_bridge",
71        "libbluetooth_log",
72        "libbt-audio-asrc",
73        "libbt-audio-hal-interface",
74        "libbt-bta",
75        "libbt-common",
76        "libbt-hci",
77        "libbt-sbc-decoder",
78        "libbt-sbc-encoder",
79        "libbt-stack",
80        "libbtcore",
81        "libbtdevice",
82        "libbte",
83        "libbtif",
84        "libcom.android.sysprop.bluetooth.wrapped",
85        "libexpresslog",
86        "libflatbuffers-cpp",
87        "libg722codec",
88        "libgmock",
89        "liblc3",
90        "libopus",
91        "libosi",
92        "libstatslog_bt",
93        "libstatslog_express",
94        "libtextclassifier_hash_static",
95    ],
96    header_libs: [
97        "libbluetooth_headers",
98        "libhardware_headers",
99    ],
100}
101
102cc_test {
103    name: "net_test_bluetooth",
104    test_suites: ["general-tests"],
105    defaults: [
106        "latest_android_hardware_audio_common_ndk_static",
107        "latest_android_hardware_bluetooth_audio_ndk_static",
108        "latest_android_media_audio_common_types_ndk_static",
109        "mts_defaults",
110        "net_test_defaults",
111    ],
112    srcs: [
113        "adapter/adapter_unittest.cc",
114        "gatt/gatt_test.cc",
115        "gatt/gatt_unittest.cc",
116    ],
117    static_libs: [
118        "aics",
119        "bluetooth_flags_c_lib_for_test",
120        "libbluetooth_crypto_toolbox",
121        "libbluetooth_gd",
122        "libbluetooth_hci_pdl",
123        "libbluetooth_log",
124        "libbt-btu-main-thread",
125        "libbt-jni-thread",
126        "libbt-platform-protos-lite",
127        "libchrome",
128        "libevent",
129        "libflags_rust_cpp_bridge",
130        "libprotobuf-cpp-lite",
131    ],
132    aidl: {
133        libs: ["bluetooth_constants"],
134    },
135    shared_libs: [
136        "libaconfig_storage_read_api_cc",
137        "libbase",
138        "libbinder",
139        "server_configurable_flags",
140    ],
141    target: {
142        android: {
143            static_libs: [
144                "android.hardware.bluetooth@1.0",
145                "android.hardware.bluetooth@1.1",
146                "android.hardware.common-V2-ndk",
147                "android.hardware.common.fmq-V1-ndk",
148                "libperfetto_client_experimental",
149            ],
150        },
151        host: {},
152    },
153}
154