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

Commit 9bd7a51d authored by Chris Manton's avatar Chris Manton
Browse files

mock: [28/63] Remove BTM_InqDbRead

Use get_btm_client_interface() instead

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

Change-Id: Ic160eb03512068a98ef5aff6076bfc68ee111041
parent b4927716
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ struct BTM_CancelInquiry BTM_CancelInquiry;
struct BTM_EnableInterlacedInquiryScan BTM_EnableInterlacedInquiryScan;
struct BTM_EnableInterlacedPageScan BTM_EnableInterlacedPageScan;
struct BTM_HasEirService BTM_HasEirService;
struct BTM_InqDbRead BTM_InqDbRead;
struct BTM_IsInquiryActive BTM_IsInquiryActive;
struct BTM_ReadRemoteDeviceName BTM_ReadRemoteDeviceName;
struct BTM_RemoveEirService BTM_RemoveEirService;
@@ -72,7 +71,6 @@ namespace mock {
namespace stack_btm_inq {

bool BTM_HasEirService::return_value = false;
tBTM_INQ_INFO* BTM_InqDbRead::return_value = nullptr;
uint16_t BTM_IsInquiryActive::return_value = 0;
tBTM_STATUS BTM_ReadRemoteDeviceName::return_value = BTM_SUCCESS;
tBTM_STATUS BTM_SetConnectability::return_value = BTM_SUCCESS;
@@ -105,10 +103,6 @@ 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);
}
tBTM_INQ_INFO* BTM_InqDbRead(const RawAddress& p_bda) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_InqDbRead(p_bda);
}
uint16_t BTM_IsInquiryActive(void) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_IsInquiryActive();
+0 −11
Original line number Diff line number Diff line
@@ -86,17 +86,6 @@ struct BTM_HasEirService {
};
extern struct BTM_HasEirService BTM_HasEirService;

// Name: BTM_InqDbRead
// Params: const RawAddress& p_bda
// Return: tBTM_INQ_INFO*
struct BTM_InqDbRead {
  static tBTM_INQ_INFO* return_value;
  std::function<tBTM_INQ_INFO*(const RawAddress& p_bda)> body{
          [](const RawAddress& /* p_bda */) { return return_value; }};
  tBTM_INQ_INFO* operator()(const RawAddress& p_bda) { return body(p_bda); }
};
extern struct BTM_InqDbRead BTM_InqDbRead;

// Name: BTM_IsInquiryActive
// Params: void
// Return: uint16_t