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

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

mock: [36/63] Remove BTM_ReadConnectedTransportAddress

Use get_btm_client_interface() instead

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

Change-Id: I9aede18af9134983fa26d929a016d0dfbe9bd8a4
parent 7f21d057
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ struct BTM_BleVerifySignature BTM_BleVerifySignature;
struct BTM_GetDeviceDHK BTM_GetDeviceDHK;
struct BTM_GetDeviceEncRoot BTM_GetDeviceEncRoot;
struct BTM_GetDeviceIDRoot BTM_GetDeviceIDRoot;
struct BTM_ReadConnectedTransportAddress BTM_ReadConnectedTransportAddress;
struct BTM_ReadDevInfo BTM_ReadDevInfo;
struct BTM_GetRemoteDeviceName BTM_GetRemoteDeviceName;
struct BTM_SecAddBleDevice BTM_SecAddBleDevice;
@@ -102,7 +101,6 @@ const Octet16 BTM_GetDeviceEncRoot::return_value{0xd5, 0xcb, 0x84, 0x54, 0xd1, 0
                                                 0xff, 0xff, 0xb2, 0xec, 0x71, 0x2b, 0xae, 0xab};
const Octet16 BTM_GetDeviceIDRoot::return_value{0xd5, 0xcb, 0x84, 0x54, 0xd1, 0x77, 0x73, 0x3e,
                                                0xff, 0xff, 0xb2, 0xec, 0x71, 0x2b, 0xae, 0xab};
bool BTM_ReadConnectedTransportAddress::return_value = false;
tBTM_STATUS BTM_SetBleDataLength::return_value = BTM_SUCCESS;
bool BTM_UseLeLink::return_value = false;
bool btm_ble_get_acl_remote_addr::return_value = false;
@@ -180,10 +178,6 @@ const Octet16& BTM_GetDeviceIDRoot() {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_ble::BTM_GetDeviceIDRoot();
}
bool BTM_ReadConnectedTransportAddress(RawAddress* remote_bda, tBT_TRANSPORT transport) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_ble::BTM_ReadConnectedTransportAddress(remote_bda, transport);
}
void BTM_ReadDevInfo(const RawAddress& remote_bda, tBT_DEVICE_TYPE* p_dev_type,
                     tBLE_ADDR_TYPE* p_addr_type) {
  inc_func_call_count(__func__);
+0 −13
Original line number Diff line number Diff line
@@ -228,19 +228,6 @@ struct BTM_GetDeviceIDRoot {
};
extern struct BTM_GetDeviceIDRoot BTM_GetDeviceIDRoot;

// Name: BTM_ReadConnectedTransportAddress
// Params: RawAddress* remote_bda, tBT_TRANSPORT transport
// Return: bool
struct BTM_ReadConnectedTransportAddress {
  static bool return_value;
  std::function<bool(RawAddress* remote_bda, tBT_TRANSPORT transport)> body{
          [](RawAddress* /* remote_bda */, tBT_TRANSPORT /* transport */) { return return_value; }};
  bool operator()(RawAddress* remote_bda, tBT_TRANSPORT transport) {
    return body(remote_bda, transport);
  }
};
extern struct BTM_ReadConnectedTransportAddress BTM_ReadConnectedTransportAddress;

// Name: BTM_ReadDevInfo
// Params: const RawAddress& remote_bda, tBT_DEVICE_TYPE* p_dev_type,
// tBLE_ADDR_TYPE* p_addr_type Return: void