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

Commit c77e6417 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

mock: [17/63] Remove BTM_GetEirSupportedServices am: 39785558

parents 93f11ba3 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_GetEirSupportedServices BTM_GetEirSupportedServices;
struct BTM_GetEirUuidList BTM_GetEirUuidList;
struct BTM_HasEirService BTM_HasEirService;
struct BTM_InqDbFirst BTM_InqDbFirst;
@@ -75,7 +74,6 @@ namespace test {
namespace mock {
namespace stack_btm_inq {

uint8_t BTM_GetEirSupportedServices::return_value = 0;
uint8_t BTM_GetEirUuidList::return_value = 0;
bool BTM_HasEirService::return_value = false;
tBTM_INQ_INFO* BTM_InqDbFirst::return_value = nullptr;
@@ -109,12 +107,6 @@ void BTM_EnableInterlacedPageScan() {
  inc_func_call_count(__func__);
  test::mock::stack_btm_inq::BTM_EnableInterlacedPageScan();
}
uint8_t BTM_GetEirSupportedServices(uint32_t* p_eir_uuid, uint8_t** p, uint8_t max_num_uuid16,
                                    uint8_t* p_num_uuid16) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_GetEirSupportedServices(p_eir_uuid, p, max_num_uuid16,
                                                                p_num_uuid16);
}
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__);
+0 −16
Original line number Diff line number Diff line
@@ -75,22 +75,6 @@ struct BTM_EnableInterlacedPageScan {
};
extern struct BTM_EnableInterlacedPageScan BTM_EnableInterlacedPageScan;

// Name: BTM_GetEirSupportedServices
// Params: uint32_t* p_eir_uuid, uint8_t** p, uint8_t max_num_uuid16, uint8_t*
// p_num_uuid16 Return: uint8_t
struct BTM_GetEirSupportedServices {
  static uint8_t return_value;
  std::function<uint8_t(uint32_t* p_eir_uuid, uint8_t** p, uint8_t max_num_uuid16,
                        uint8_t* p_num_uuid16)>
          body{[](uint32_t* /* p_eir_uuid */, uint8_t** /* p */, uint8_t /* max_num_uuid16 */,
                  uint8_t* /* p_num_uuid16 */) { return return_value; }};
  uint8_t operator()(uint32_t* p_eir_uuid, uint8_t** p, uint8_t max_num_uuid16,
                     uint8_t* p_num_uuid16) {
    return body(p_eir_uuid, p, max_num_uuid16, p_num_uuid16);
  }
};
extern struct BTM_GetEirSupportedServices BTM_GetEirSupportedServices;

// 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