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

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

mock: [21/63] Remove BTM_GetMaxPacketSize

Use get_btm_client_interface() instead

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

Change-Id: I80bc8acd033bec21ea3887dfb408e1f660e8c778
parent e2bad5e0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -78,7 +78,6 @@ struct BTM_SwitchRoleToCentral BTM_SwitchRoleToCentral;
struct btm_remove_acl btm_remove_acl;
struct btm_get_acl_disc_reason_code btm_get_acl_disc_reason_code;
struct btm_is_acl_locally_initiated btm_is_acl_locally_initiated;
struct BTM_GetMaxPacketSize BTM_GetMaxPacketSize;
struct BTM_GetNumAclLinks BTM_GetNumAclLinks;
struct acl_get_supported_packet_types acl_get_supported_packet_types;
struct BTM_GetPeerSCA BTM_GetPeerSCA;
@@ -298,10 +297,6 @@ bool btm_is_acl_locally_initiated(void) {
  inc_func_call_count(__func__);
  return test::mock::stack_acl::btm_is_acl_locally_initiated();
}
uint16_t BTM_GetMaxPacketSize(const RawAddress& addr) {
  inc_func_call_count(__func__);
  return test::mock::stack_acl::BTM_GetMaxPacketSize(addr);
}
uint16_t BTM_GetNumAclLinks(void) {
  inc_func_call_count(__func__);
  return test::mock::stack_acl::BTM_GetNumAclLinks();
+0 −9
Original line number Diff line number Diff line
@@ -417,15 +417,6 @@ struct btm_is_acl_locally_initiated {
  bool operator()(void) { return body(); }
};
extern struct btm_is_acl_locally_initiated btm_is_acl_locally_initiated;
// Name: BTM_GetMaxPacketSize
// Params: const RawAddress& addr
// Returns: uint16_t
struct BTM_GetMaxPacketSize {
  std::function<uint16_t(const RawAddress& addr)> body{
          [](const RawAddress& /* addr */) { return 0; }};
  uint16_t operator()(const RawAddress& addr) { return body(addr); }
};
extern struct BTM_GetMaxPacketSize BTM_GetMaxPacketSize;
// Name: BTM_GetNumAclLinks
// Params: void
// Returns: uint16_t