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

Commit 6672f4cf authored by Chris Manton's avatar Chris Manton
Browse files

mock: [18/63] Remove BTM_GetEirUuidList

Use get_btm_client_interface() instead

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

Change-Id: Idac23d135eadb29faf3592c2b3ba1b01b64583d3
parent 39785558
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -38,7 +38,6 @@ namespace stack_btm_inq {
struct BTM_CancelInquiry BTM_CancelInquiry;
struct BTM_EnableInterlacedInquiryScan BTM_EnableInterlacedInquiryScan;
struct BTM_EnableInterlacedPageScan BTM_EnableInterlacedPageScan;
struct BTM_GetEirUuidList BTM_GetEirUuidList;
struct BTM_HasEirService BTM_HasEirService;
struct BTM_InqDbFirst BTM_InqDbFirst;
struct BTM_InqDbNext BTM_InqDbNext;
@@ -74,7 +73,6 @@ namespace test {
namespace mock {
namespace stack_btm_inq {

uint8_t BTM_GetEirUuidList::return_value = 0;
bool BTM_HasEirService::return_value = false;
tBTM_INQ_INFO* BTM_InqDbFirst::return_value = nullptr;
tBTM_INQ_INFO* BTM_InqDbNext::return_value = nullptr;
@@ -107,12 +105,6 @@ void BTM_EnableInterlacedPageScan() {
  inc_func_call_count(__func__);
  test::mock::stack_btm_inq::BTM_EnableInterlacedPageScan();
}
uint8_t BTM_GetEirUuidList(const uint8_t* p_eir, size_t eir_len, uint8_t uuid_size,
                           uint8_t* p_num_uuid, uint8_t* p_uuid_list, uint8_t max_num_uuid) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_GetEirUuidList(p_eir, eir_len, uuid_size, p_num_uuid,
                                                       p_uuid_list, max_num_uuid);
}
bool BTM_HasEirService(const uint32_t* p_eir_uuid, uint16_t uuid16) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_HasEirService(p_eir_uuid, uuid16);
+0 −17
Original line number Diff line number Diff line
@@ -75,23 +75,6 @@ struct BTM_EnableInterlacedPageScan {
};
extern struct BTM_EnableInterlacedPageScan BTM_EnableInterlacedPageScan;

// Name: BTM_GetEirUuidList
// Params: const uint8_t* p_eir, size_t eir_len, uint8_t uuid_size, uint8_t*
// p_num_uuid, uint8_t* p_uuid_list, uint8_t max_num_uuid Return: uint8_t
struct BTM_GetEirUuidList {
  static uint8_t return_value;
  std::function<uint8_t(const uint8_t* p_eir, size_t eir_len, uint8_t uuid_size,
                        uint8_t* p_num_uuid, uint8_t* p_uuid_list, uint8_t max_num_uuid)>
          body{[](const uint8_t* /* p_eir */, size_t /* eir_len */, uint8_t /* uuid_size */,
                  uint8_t* /* p_num_uuid */, uint8_t* /* p_uuid_list */,
                  uint8_t /* max_num_uuid */) { return return_value; }};
  uint8_t operator()(const uint8_t* p_eir, size_t eir_len, uint8_t uuid_size, uint8_t* p_num_uuid,
                     uint8_t* p_uuid_list, uint8_t max_num_uuid) {
    return body(p_eir, eir_len, uuid_size, p_num_uuid, p_uuid_list, max_num_uuid);
  }
};
extern struct BTM_GetEirUuidList BTM_GetEirUuidList;

// Name: BTM_HasEirService
// Params: const uint32_t* p_eir_uuid, uint16_t uuid16
// Return: bool