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

Commit 719841a9 authored by Chris Manton's avatar Chris Manton
Browse files

mock: [44/63] Remove BTM_RegForEScoEvt

Use get_btm_client_interface() instead

Bug: 352129816
Test: m .
Flag: EXEMPT, Test infrastructure

Change-Id: Ib3cbe9ef2599f7247b77fff37fea7f67837d4ffd
parent 14ecae5c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -263,7 +263,8 @@ static void bta_hf_client_sco_create(tBTA_HF_CLIENT_CB* client_cb, bool is_orig)
          &client_cb->peer_addr, is_orig, params.packet_types, &client_cb->sco_idx,
          bta_hf_client_sco_conn_cback, bta_hf_client_sco_disc_cback);
  if (status == BTM_CMD_STARTED && !is_orig) {
    if (!BTM_RegForEScoEvts(client_cb->sco_idx, bta_hf_client_esco_connreq_cback)) {
    if (get_btm_client_interface().sco.BTM_RegForEScoEvts(
                client_cb->sco_idx, bta_hf_client_esco_connreq_cback) == BTM_SUCCESS) {
      log::verbose("SCO registration success");
    }
  }
+0 −4
Original line number Diff line number Diff line
@@ -44,10 +44,6 @@ tBTM_STATUS BTM_CreateSco(const RawAddress* /* remote_bda */, bool /* is_orig */
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS BTM_RegForEScoEvts(uint16_t /* sco_inx */, tBTM_ESCO_CBACK* /* p_esco_cback */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS BTM_RemoveSco(uint16_t /* sco_inx */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;