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

Commit bab06f83 authored by Chris Manton's avatar Chris Manton
Browse files

mock: [52/63] Remove BTM_SetDeviceClass

Use get_btm_client_interface() instead

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

Change-Id: I152e7ea4f925053c896655f50a21e82a6810d849
parent 6d159107
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ bool utl_set_device_class(tBTA_UTL_COD* p_cod, uint8_t cmd) {
  DEV_CLASS dev_class;
  FIELDS_TO_COD(dev_class, minor, major, service);

  if (BTM_SetDeviceClass(dev_class) == BTM_SUCCESS) {
  if (get_btm_client_interface().local.BTM_SetDeviceClass(dev_class) == BTM_SUCCESS) {
    return true;
  }

+1 −1
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ tBTM_STATUS BTM_SetDiscoverability(uint16_t inq_mode) {
    }

    FIELDS_TO_COD(cod, minor, major, service_class);
    (void)BTM_SetDeviceClass(cod);
    (void)get_btm_client_interface().local.BTM_SetDeviceClass(cod);
  }

  return BTM_SUCCESS;
+0 −4
Original line number Diff line number Diff line
@@ -45,10 +45,6 @@ tBTM_STATUS BTM_EnableTestMode(void) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS BTM_SetDeviceClass(DEV_CLASS /* dev_class */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;
}
tBTM_STATUS BTM_SetLocalDeviceName(const char* /* p_name */) {
  inc_func_call_count(__func__);
  return BTM_SUCCESS;