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

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

mock: [12/63] Remove BTM_ClearInqDb

Use get_btm_client_interface() instead

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

Change-Id: I31e315f9123a5f341b162ec9a3fd01b778677fe1
parent b59360ea
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ namespace stack_btm_inq {

// Function state capture and return values, if needed
struct BTM_CancelInquiry BTM_CancelInquiry;
struct BTM_ClearInqDb BTM_ClearInqDb;
struct BTM_EnableInterlacedInquiryScan BTM_EnableInterlacedInquiryScan;
struct BTM_EnableInterlacedPageScan BTM_EnableInterlacedPageScan;
struct BTM_GetEirSupportedServices BTM_GetEirSupportedServices;
@@ -76,7 +75,6 @@ namespace test {
namespace mock {
namespace stack_btm_inq {

tBTM_STATUS BTM_ClearInqDb::return_value = BTM_SUCCESS;
uint8_t BTM_GetEirSupportedServices::return_value = 0;
uint8_t BTM_GetEirUuidList::return_value = 0;
bool BTM_HasEirService::return_value = false;
@@ -103,10 +101,6 @@ void BTM_CancelInquiry(void) {
  inc_func_call_count(__func__);
  test::mock::stack_btm_inq::BTM_CancelInquiry();
}
tBTM_STATUS BTM_ClearInqDb(const RawAddress* p_bda) {
  inc_func_call_count(__func__);
  return test::mock::stack_btm_inq::BTM_ClearInqDb(p_bda);
}
void BTM_EnableInterlacedInquiryScan() {
  inc_func_call_count(__func__);
  test::mock::stack_btm_inq::BTM_EnableInterlacedInquiryScan();
+0 −11
Original line number Diff line number Diff line
@@ -57,17 +57,6 @@ struct BTM_CancelInquiry {
};
extern struct BTM_CancelInquiry BTM_CancelInquiry;

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

// Name: BTM_EnableInterlacedInquiryScan
// Params:
// Return: void