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/btif/include", 23 "packages/modules/Bluetooth/system/device/include", 24 "packages/modules/Bluetooth/system/embdrv/sbc/decoder/include", 25 "packages/modules/Bluetooth/system/embdrv/sbc/encoder/include", 26 "packages/modules/Bluetooth/system/gd", 27 "packages/modules/Bluetooth/system/include", 28 "packages/modules/Bluetooth/system/internal_include", 29 "packages/modules/Bluetooth/system/stack/a2dp", 30 "packages/modules/Bluetooth/system/stack/avdt", 31 "packages/modules/Bluetooth/system/stack/btm", 32 "packages/modules/Bluetooth/system/stack/include", 33 "packages/modules/Bluetooth/system/stack/l2cap", 34 "packages/modules/Bluetooth/system/udrv/include", 35 "packages/modules/Bluetooth/system/vnd/include", 36 "system/libfmq/include", 37 "system/libhwbinder/include", 38 ], 39 srcs: [ 40 ":BtaDmSources", 41 ":TestCommonMockFunctions", 42 ":TestMockAndroidHardware", 43 ":TestMockCommon", 44 ":TestMockFrameworks", 45 ":TestMockHci", 46 ":TestMockSystemLibfmq", 47 ":TestMockUdrv", 48 "adapter/bluetooth_test.cc", 49 ], 50 shared_libs: [ 51 "android.hardware.bluetooth.audio@2.0", 52 "android.hardware.bluetooth.audio@2.1", 53 "android.system.suspend-V1-ndk", 54 "libbinder", 55 "libbinder_ndk", 56 "libcrypto", 57 "libcutils", 58 "libhidlbase", 59 "liblog", 60 "libstatssocket", 61 "libutils", 62 "libPlatformProperties", 63 ], 64 static_libs: [ 65 "android.hardware.bluetooth.a2dp@1.0", 66 "android.system.suspend.control-V1-ndk", 67 "avrcp-target-service", 68 "lib-bt-packets", 69 "lib-bt-packets-avrcp", 70 "lib-bt-packets-base", 71 "libFraunhoferAAC", 72 "libaudio-a2dp-hw-utils", 73 "libbluetooth-dumpsys", 74 "libbluetooth-types", 75 "libbluetooth_core_rs", 76 "libbluetooth_core_rs_bridge", 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 "libc++fs", 92 "libcom.android.sysprop.bluetooth", 93 "libflatbuffers-cpp", 94 "libg722codec", 95 "libgmock", 96 "liblc3", 97 "libopus", 98 "libosi", 99 "libstatslog_bt", 100 ], 101 header_libs: [ 102 "libbluetooth_headers", 103 "libhardware_headers", 104 ], 105} 106 107cc_test { 108 name: "net_test_bluetooth", 109 test_suites: ["device-tests"], 110 defaults: [ 111 "bluetooth_gtest_x86_asan_workaround", 112 "mts_defaults", 113 "net_test_defaults", 114 ], 115 srcs: [ 116 "adapter/adapter_unittest.cc", 117 "gatt/gatt_test.cc", 118 "gatt/gatt_unittest.cc", 119 ], 120 static_libs: [ 121 "android.hardware.audio.common-V2-ndk", 122 "android.hardware.bluetooth.audio-V3-ndk", 123 "android.hardware.bluetooth@1.0", 124 "android.hardware.bluetooth@1.1", 125 "android.hardware.common-V2-ndk", 126 "android.hardware.common.fmq-V1-ndk", 127 "android.media.audio.common.types-V2-ndk", 128 "libchrome", 129 "libevent", 130 ], 131} 132