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

Commit c41a0402 authored by Chris Manton's avatar Chris Manton Committed by Gerrit Code Review
Browse files

Merge changes I3e646702,I006fe7f1

* changes:
  Consolidate net_test_hf_client_add_record into net_bta_test
  Compiled out [[maybe_unused]] int line_num = 0;
parents 9143b886 7caad527
Loading
Loading
Loading
Loading
+4 −37
Original line number Diff line number Diff line
@@ -191,11 +191,12 @@ cc_test {
        ":TestMockStackBtm",
        ":TestCommonLogMsg",
        ":TestCommonMockFunctions",
        "test/bta_hf_client_test.cc",
        "test/bta_dm_cust_uuid_test.cc",
        "test/bta_dip_test.cc",
        "test/gatt/database_builder_test.cc",
        "test/bta_dm_cust_uuid_test.cc",
        "test/bta_hf_client_add_record_test.cc",
        "test/bta_hf_client_test.cc",
        "test/gatt/database_builder_sample_device_test.cc",
        "test/gatt/database_builder_test.cc",
        "test/gatt/database_test.cc",
    ],
    shared_libs: [
@@ -309,40 +310,6 @@ cc_test {
    },
}

// bta hf client add record tests for target
cc_test {
    name: "net_test_hf_client_add_record",
    defaults: [
        "fluoride_defaults",
        "mts_defaults",
    ],
    test_suites: ["device-tests"],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/gd",
        "packages/modules/Bluetooth/system/bta/include",
        "packages/modules/Bluetooth/system/bta/sys",
        "packages/modules/Bluetooth/system/btif/include",
        "packages/modules/Bluetooth/system/internal_include",
        "packages/modules/Bluetooth/system/stack/include",
        "packages/modules/Bluetooth/system/utils/include",
    ],
    srcs: [
        ":TestCommonLogMsg",
        "test/bta_hf_client_add_record_test.cc",
    ],
    header_libs: ["libbluetooth_headers"],
    shared_libs: [
        "libcutils",
        "liblog",
    ],
    static_libs: [
        "libbluetooth-types",
        "libosi",
    ],
    cflags: ["-DBUILDCFG"],
}

// csis unit tests for host
cc_test {
    name: "bluetooth_csis_test",
+1 −1
Original line number Diff line number Diff line
@@ -239,7 +239,7 @@ extern void bta_hf_client_dump_statistics(int fd);
extern void bta_hf_client_cb_arr_init(void);

/* SDP functions */
extern bool bta_hf_client_add_record(char* p_service_name, uint8_t scn,
extern bool bta_hf_client_add_record(const char* p_service_name, uint8_t scn,
                                     tBTA_HF_CLIENT_FEAT features,
                                     uint32_t sdp_handle);
extern void bta_hf_client_create_record(tBTA_HF_CLIENT_CB_ARR* client_cb,
+0 −4
Original line number Diff line number Diff line
@@ -26,10 +26,6 @@

static uint16_t gVersion;

// Define appl_trace_level even though LogMsg is trivial.  This is required when
// coverage is enabled because the compiler is unable to eliminate the `if`
// checks against appl_trace_level in APPL_TRACE_* macros.
uint8_t appl_trace_level = 0;
bool SDP_AddProtocolList(uint32_t handle, uint16_t num_elem,
                         tSDP_PROTOCOL_ELEM* p_elem_list) {
  return false;
+2 −2
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ std::optional<ConfigCache> LegacyConfigFile::Read(size_t temp_devices_capacity)
    LOG_ERROR("unable to open file '%s', error: %s", path_.c_str(), strerror(errno));
    return std::nullopt;
  }
  int line_num = 0;
  [[maybe_unused]] int line_num = 0;
  ConfigCache cache(temp_devices_capacity, Device::kLinkKeyProperties);
  std::string line;
  std::string section(ConfigCache::kDefaultSectionName);