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

Commit 3d1666bd authored by Chris Manton's avatar Chris Manton
Browse files

mock: [34/63] Remove BTM_IsScoActiveByBdaddr

Use get_btm_client_interface() instead

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

Change-Id: I7b487104eb6b314d3adfb6c9ae7441ea3399d5d0
parent 3c87beab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2101,7 +2101,7 @@ void l2cu_create_conn_br_edr(tL2C_LCB* p_lcb) {
    if (!p_lcb_cur->in_use) {
      continue;
    }
    if (BTM_IsScoActiveByBdaddr(p_lcb_cur->remote_bd_addr)) {
    if (get_btm_client_interface().sco.BTM_IsScoActiveByBdaddr(p_lcb_cur->remote_bd_addr)) {
      log::verbose("Central peripheral switch not allowed when SCO active");
      continue;
    }
+0 −4
Original line number Diff line number Diff line
@@ -30,10 +30,6 @@
#include "test/common/mock_functions.h"
#include "types/raw_address.h"

bool BTM_IsScoActiveByBdaddr(const RawAddress& /* remote_bda */) {
  inc_func_call_count(__func__);
  return false;
}
bool btm_sco_removed(uint16_t /* hci_handle */, tHCI_REASON /* reason */) {
  inc_func_call_count(__func__);
  return false;