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

Commit 20c1892c authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

mock: Add missing stack:: mocks am: ce8478af am: cbd7153e

parents b2e10a38 cbd7153e
Loading
Loading
Loading
Loading
+0 −14
Original line number Original line Diff line number Diff line
@@ -18,22 +18,11 @@
#include <base/location.h>
#include <base/location.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>


#include <chrono>

#include "bta/av/bta_av_int.h"
#include "bta/av/bta_av_int.h"
#include "bta/dm/bta_dm_int.h"
#include "bta/hf_client/bta_hf_client_int.h"
#include "bta/hf_client/bta_hf_client_int.h"
#include "bta/include/bta_api.h"
#include "bta/include/bta_dm_api.h"
#include "bta/include/bta_hf_client_api.h"
#include "btif/include/stack_manager.h"
#include "common/message_loop_thread.h"
#include "osi/include/log.h"
#include "stack/include/btm_status.h"
#include "test/common/mock_functions.h"
#include "test/common/mock_functions.h"
#include "test/mock/mock_osi_alarm.h"
#include "test/mock/mock_osi_alarm.h"
#include "test/mock/mock_stack_acl.h"
#include "test/mock/mock_stack_acl.h"
#include "test/mock/mock_stack_btm_sec.h"


using namespace std::chrono_literals;
using namespace std::chrono_literals;


@@ -43,9 +32,6 @@ namespace {
const RawAddress kRawAddress({0x11, 0x22, 0x33, 0x44, 0x55, 0x66});
const RawAddress kRawAddress({0x11, 0x22, 0x33, 0x44, 0x55, 0x66});
}  // namespace
}  // namespace


// TODO move into mock
void BTM_block_role_switch_and_sniff_mode_for(const RawAddress& peer_addr) {}

struct alarm_t {
struct alarm_t {
  alarm_t(const char* name){};
  alarm_t(const char* name){};
  int any_value;
  int any_value;
+3 −0
Original line number Original line Diff line number Diff line
@@ -670,3 +670,6 @@ void BTM_unblock_role_switch_and_sniff_mode_for(const RawAddress& peer_addr) {
}
}


// END mockcify generation
// END mockcify generation

void BTM_block_role_switch_and_sniff_mode_for(
    const RawAddress& /* peer_addr */) {}
+3 −0
Original line number Original line Diff line number Diff line
@@ -133,3 +133,6 @@ bool maybe_resolve_address(RawAddress* bda, tBLE_ADDR_TYPE* bda_type) {
  inc_func_call_count(__func__);
  inc_func_call_count(__func__);
  return test::mock::stack_btm_dev::maybe_resolve_address(bda, bda_type);
  return test::mock::stack_btm_dev::maybe_resolve_address(bda, bda_type);
}
}
const tBLE_BD_ADDR BTM_Sec_GetAddressWithType(const RawAddress& /* bd_addr */) {
  return {};
}