Skip to content
Snippets Groups Projects
Commit b9962c0b authored by Chris Manton's avatar Chris Manton
Browse files

net_test_btif: Provide host support

Bug: 311238169
Test: atest net_test_btif

Change-Id: Idc8b1b4f3d66d248ebb11797a1cbd567b616c954
parent 3394c7db
No related branches found
No related tags found
No related merge requests found
...@@ -253,7 +253,6 @@ cc_library_static { ...@@ -253,7 +253,6 @@ cc_library_static {
header_libs: ["libbluetooth_headers"], header_libs: ["libbluetooth_headers"],
} }
// btif unit tests for target
cc_test { cc_test {
name: "net_test_btif", name: "net_test_btif",
defaults: [ defaults: [
...@@ -264,33 +263,27 @@ cc_test { ...@@ -264,33 +263,27 @@ cc_test {
"mts_defaults", "mts_defaults",
], ],
test_suites: ["general-tests"], test_suites: ["general-tests"],
host_supported: true,
include_dirs: btifCommonIncludes, include_dirs: btifCommonIncludes,
srcs: [ srcs: [
"test/btif_storage_test.cc", "test/btif_storage_test.cc",
], ],
header_libs: ["libbluetooth_headers"], header_libs: ["libbluetooth_headers"],
shared_libs: [ shared_libs: [
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"libaaudio",
"libbinder_ndk", "libbinder_ndk",
"libcrypto", "libcrypto",
"libcutils", "libcutils",
"libfmq", "libfmq",
"libhidlbase", "libhidlbase",
"liblog", "liblog",
"libstatssocket",
"libutils", "libutils",
"server_configurable_flags", "server_configurable_flags",
], ],
static_libs: [ static_libs: [
"android.hardware.bluetooth.a2dp@1.0",
"android.hardware.bluetooth@1.0",
"android.hardware.bluetooth@1.1",
"android.hardware.common-V2-ndk",
"android.hardware.common.fmq-V1-ndk",
"android.system.suspend.control-V1-ndk",
"libFraunhoferAAC", "libFraunhoferAAC",
"libbase",
"libbluetooth-dumpsys",
"libbluetooth-for-tests",
"libbluetooth-types", "libbluetooth-types",
"libbluetooth_core_rs", "libbluetooth_core_rs",
"libbt-audio-hal-interface", "libbt-audio-hal-interface",
...@@ -309,6 +302,9 @@ cc_test { ...@@ -309,6 +302,9 @@ cc_test {
"libbtif", "libbtif",
"libbtif-core", "libbtif-core",
"libchrome", "libchrome",
"libcom.android.sysprop.bluetooth.wrapped",
"libevent",
"libflatbuffers-cpp",
"libg722codec", "libg722codec",
"liblc3", "liblc3",
"libopus", "libopus",
...@@ -317,15 +313,23 @@ cc_test { ...@@ -317,15 +313,23 @@ cc_test {
"libstatslog_bt", "libstatslog_bt",
"libudrv-uipc", "libudrv-uipc",
], ],
whole_static_libs: [
"libbluetooth-dumpsys",
"libbluetooth-for-tests",
],
target: { target: {
android: { android: {
shared_libs: [ shared_libs: [
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"libPlatformProperties", "libPlatformProperties",
"libbinder_ndk", "libbinder_ndk",
"libstatssocket",
],
static_libs: [
"android.hardware.bluetooth.a2dp@1.0",
"android.hardware.bluetooth@1.0",
"android.hardware.bluetooth@1.1",
"android.hardware.common-V2-ndk",
"android.hardware.common.fmq-V1-ndk",
"android.system.suspend.control-V1-ndk",
"libaaudio",
], ],
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment