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

Commit 713d9b46 authored by Chris Manton's avatar Chris Manton
Browse files

mock: [3/63] Remove BTM_AddEirService

Use get_btm_client_interface() instead

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

Change-Id: If1702be492e0cbd3020432bff05b5e9354c4f81f
parent 9dc1b223
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ namespace mock {
namespace stack_btm_inq {

// Function state capture and return values, if needed
struct BTM_AddEirService BTM_AddEirService;
struct BTM_CancelInquiry BTM_CancelInquiry;
struct BTM_CancelRemoteDeviceName BTM_CancelRemoteDeviceName;
struct BTM_ClearInqDb BTM_ClearInqDb;
@@ -102,10 +101,6 @@ bool btm_inq_find_bdaddr::return_value = false;
}  // namespace test

// Mocked functions, if any
void BTM_AddEirService(uint32_t* p_eir_uuid, uint16_t uuid16) {
  inc_func_call_count(__func__);
  test::mock::stack_btm_inq::BTM_AddEirService(p_eir_uuid, uuid16);
}
void BTM_CancelInquiry(void) {
  inc_func_call_count(__func__);
  test::mock::stack_btm_inq::BTM_CancelInquiry();
+0 −11
Original line number Diff line number Diff line
@@ -48,17 +48,6 @@ namespace test {
namespace mock {
namespace stack_btm_inq {

// Shared state between mocked functions and tests
// Name: BTM_AddEirService
// Params: uint32_t* p_eir_uuid, uint16_t uuid16
// Return: void
struct BTM_AddEirService {
  std::function<void(uint32_t* p_eir_uuid, uint16_t uuid16)> body{
          [](uint32_t* /* p_eir_uuid */, uint16_t /* uuid16 */) {}};
  void operator()(uint32_t* p_eir_uuid, uint16_t uuid16) { body(p_eir_uuid, uuid16); }
};
extern struct BTM_AddEirService BTM_AddEirService;

// Name: BTM_CancelInquiry
// Params: void
// Return: void