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

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

mock: [33/63] Remove BTM_IsRemoteVersionReceived

Use get_btm_client_interface() instead

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

Change-Id: Ibf33fb459fa1bc34aefc883f556729f70f6bcbbb
parent 38d184e6
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ struct BTM_BLE_IS_RESOLVE_BDA BTM_BLE_IS_RESOLVE_BDA;
struct BTM_IsAclConnectionUp BTM_IsAclConnectionUp;
struct BTM_IsBleConnection BTM_IsBleConnection;
struct BTM_ReadRemoteConnectionAddr BTM_ReadRemoteConnectionAddr;
struct BTM_IsRemoteVersionReceived BTM_IsRemoteVersionReceived;
struct BTM_ReadRemoteVersion BTM_ReadRemoteVersion;
struct BTM_is_sniff_allowed_for BTM_is_sniff_allowed_for;
struct acl_create_le_connection acl_create_le_connection;
@@ -154,10 +153,6 @@ bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, RawAddress& con
  return test::mock::stack_acl::BTM_ReadRemoteConnectionAddr(pseudo_addr, conn_addr, p_addr_type,
                                                             ota_address);
}
bool BTM_IsRemoteVersionReceived(const RawAddress& addr) {
  inc_func_call_count(__func__);
  return test::mock::stack_acl::BTM_IsRemoteVersionReceived(addr);
}
bool BTM_ReadRemoteVersion(const RawAddress& addr, uint8_t* lmp_version, uint16_t* manufacturer,
                           uint16_t* lmp_sub_version) {
  inc_func_call_count(__func__);
+0 −9
Original line number Diff line number Diff line
@@ -79,15 +79,6 @@ struct BTM_ReadRemoteConnectionAddr {
  }
};
extern struct BTM_ReadRemoteConnectionAddr BTM_ReadRemoteConnectionAddr;
// Name: BTM_IsRemoteVersionReceived
// Params: const RawAddress& addr
// Returns: bool
struct BTM_IsRemoteVersionReceived {
  std::function<bool(const RawAddress& addr)> body{
          [](const RawAddress& /* addr */) { return false; }};
  bool operator()(const RawAddress& addr) { return body(addr); }
};
extern struct BTM_IsRemoteVersionReceived BTM_IsRemoteVersionReceived;
// Name: BTM_ReadRemoteVersion
// Params: const RawAddress& addr, uint8_t* lmp_version, uint16_t*
// manufacturer, uint16_t* lmp_sub_version