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

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

mock: [11/63] Remove BTM_CancelRemoteDeviceName

Use get_btm_client_interface() instead

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

Change-Id: I57d203b7b83995bd241a2049311f7fbcfb87bba4
parent bd51a099
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_CancelRemoteDeviceName BTM_CancelRemoteDeviceName;
struct BTM_ClearInqDb BTM_ClearInqDb;
struct BTM_EnableInterlacedInquiryScan BTM_EnableInterlacedInquiryScan;
struct BTM_EnableInterlacedPageScan BTM_EnableInterlacedPageScan;
@@ -77,7 +76,6 @@ namespace test {
namespace mock {
namespace stack_btm_inq {

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

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

// Name: BTM_ClearInqDb
// Params: const RawAddress* p_bda
// Return: tBTM_STATUS