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

Commit 698c516e authored by Chris Manton's avatar Chris Manton
Browse files

mock: [62/63] Remove BTM_WriteEIR

Use get_btm_client_interface() instead

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

Change-Id: I740fc1a8fd3e952960cdae859558ee2dae0927d3
parent eddfa98b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ struct BTM_SetConnectability BTM_SetConnectability;
struct BTM_SetDiscoverability BTM_SetDiscoverability;
struct BTM_SetInquiryMode BTM_SetInquiryMode;
struct BTM_StartInquiry BTM_StartInquiry;
struct BTM_WriteEIR BTM_WriteEIR;
struct btm_clear_all_pending_le_entry btm_clear_all_pending_le_entry;
struct btm_clr_inq_db btm_clr_inq_db;
struct btm_clr_inq_result_flt btm_clr_inq_result_flt;
@@ -74,7 +73,6 @@ tBTM_STATUS BTM_SetConnectability::return_value = BTM_SUCCESS;
tBTM_STATUS BTM_SetDiscoverability::return_value = BTM_SUCCESS;
tBTM_STATUS BTM_SetInquiryMode::return_value = BTM_SUCCESS;
tBTM_STATUS BTM_StartInquiry::return_value = BTM_SUCCESS;
tBTM_STATUS BTM_WriteEIR::return_value = BTM_SUCCESS;
tINQ_DB_ENT* btm_inq_db_find::return_value = nullptr;
tINQ_DB_ENT* btm_inq_db_new::return_value = nullptr;
bool btm_inq_find_bdaddr::return_value = false;
@@ -120,10 +118,6 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_RESULTS_CB* p_results_cb, tBTM_CMPL_CB* p_
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_StartInquiry(p_results_cb, p_cmpl_cb);
}
tBTM_STATUS BTM_WriteEIR(BT_HDR* p_buff) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_WriteEIR(p_buff);
}
void btm_clear_all_pending_le_entry(void) {
  inc_func_call_count(__func__);
  test::mock::stack_btm_inq::btm_clear_all_pending_le_entry();
+0 −11
Original line number Diff line number Diff line
@@ -143,17 +143,6 @@ struct BTM_StartInquiry {
};
extern struct BTM_StartInquiry BTM_StartInquiry;

// Name: BTM_WriteEIR
// Params: BT_HDR* p_buff
// Return: tBTM_STATUS
struct BTM_WriteEIR {
  static tBTM_STATUS return_value;
  std::function<tBTM_STATUS(BT_HDR* p_buff)> body{
          [](BT_HDR* /* p_buff */) { return return_value; }};
  tBTM_STATUS operator()(BT_HDR* p_buff) { return body(p_buff); }
};
extern struct BTM_WriteEIR BTM_WriteEIR;

// Name: btm_clear_all_pending_le_entry
// Params: void
// Return: void