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

Commit c3cf2881 authored by Jakub Rotkiewicz's avatar Jakub Rotkiewicz Committed by William Escande
Browse files

aidl/a2dp_provider_info: add unit tests for ProviderInfo

Bug: 315956719
Bug: 305734815
Test: atest bluetooth-test-audio-hal-provider-info

Change-Id: I2f6176d9a00d1326e628f99850b6f7774bdd4aba
parent d9f126ec
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -322,6 +322,9 @@
    {
      "name": "bluetooth_le_audio_codec_manager_test"
    },
    {
      "name": "bluetooth-test-audio-hal-a2dp-provider-info"
    },
    {
      "name": "bluetooth_test_gdx_unit"
    },
+71 −0
Original line number Diff line number Diff line
@@ -117,3 +117,74 @@ cc_test {
    ],
    header_libs: ["libbluetooth_headers"],
}

// Bluetooth Audio Provider Info unit tests for target and host
cc_test {
    name: "bluetooth-test-audio-hal-a2dp-provider-info",
    test_suites: ["general-tests"],
    defaults: [
        "fluoride_defaults",
        "latest_android_hardware_bluetooth_audio_ndk_shared",
        "mts_defaults",
    ],
    cflags: [
        "-DBUILDCFG",
        "-DUNIT_TESTS",
        "-Wno-unused-parameter",
    ],
    host_supported: true,
    test_options: {
        unit_test: true,
    },
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/gd",
        "packages/modules/Bluetooth/system/stack/include",
    ],
    target: {
        host: {
            srcs: [
                ":BluetoothHostTestingLogCapture",
            ],
        },
        android: {
            srcs: [
                ":BluetoothAndroidTestingLogCapture",
            ],
        },
    },
    sanitize: {
        cfi: true,
        scs: true,
        address: true,
        all_undefined: true,
        integer_overflow: true,
        diag: {
            undefined: true,
        },
    },
    srcs: [
        ":TestCommonMockFunctions",
        ":TestMockAudioHalInterface",
        "aidl/a2dp_provider_info.cc",
        "aidl/a2dp_provider_info_unittest.cc",
    ],
    shared_libs: [
        "libbase",
        "libcutils",
        "libfmq",
        "liblog",
        "libutils",
        "server_configurable_flags",
    ],
    static_libs: [
        "bluetooth_flags_c_lib",
        "libbt-common",
        "libbt_shim_bridge",
        "libchrome",
        "libflagtest",
        "libgmock",
        "libosi",
    ],
    header_libs: ["libbluetooth_headers"],
}
+773 −0

File added.

Preview size limit exceeded, changes collapsed.