Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+19 −15
Original line number Diff line number Diff line
@@ -253,7 +253,6 @@ cc_library_static {
    header_libs: ["libbluetooth_headers"],
}

// btif unit tests for target
cc_test {
    name: "net_test_btif",
    defaults: [
@@ -264,33 +263,27 @@ cc_test {
        "mts_defaults",
    ],
    test_suites: ["general-tests"],
    host_supported: true,
    include_dirs: btifCommonIncludes,
    srcs: [
        "test/btif_storage_test.cc",
    ],
    header_libs: ["libbluetooth_headers"],
    shared_libs: [
        "android.hardware.bluetooth.audio@2.0",
        "android.hardware.bluetooth.audio@2.1",
        "libaaudio",
        "libbinder_ndk",
        "libcrypto",
        "libcutils",
        "libfmq",
        "libhidlbase",
        "liblog",
        "libstatssocket",
        "libutils",
        "server_configurable_flags",
    ],
    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",
        "libbase",
        "libbluetooth-dumpsys",
        "libbluetooth-for-tests",
        "libbluetooth-types",
        "libbluetooth_core_rs",
        "libbt-audio-hal-interface",
@@ -309,6 +302,9 @@ cc_test {
        "libbtif",
        "libbtif-core",
        "libchrome",
        "libcom.android.sysprop.bluetooth.wrapped",
        "libevent",
        "libflatbuffers-cpp",
        "libg722codec",
        "liblc3",
        "libopus",
@@ -317,15 +313,23 @@ cc_test {
        "libstatslog_bt",
        "libudrv-uipc",
    ],
    whole_static_libs: [
        "libbluetooth-dumpsys",
        "libbluetooth-for-tests",
    ],
    target: {
        android: {
            shared_libs: [
                "android.hardware.bluetooth.audio@2.0",
                "android.hardware.bluetooth.audio@2.1",
                "libPlatformProperties",
                "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",
            ],
        },
    },