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

Commit 90532995 authored by Myles Watson's avatar Myles Watson
Browse files

Use ControllerMockInterface in StackAclTest

Bug: 301661850
Test: mma -j32
Flag: EXEMPT, test-only change
Change-Id: I87a3c48dfcb19ce7ce3ec9eb52c1d1bb174f3bba
parent e7a1bbed
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
#include <cstdint>

#include "common/init_flags.h"
#include "hci/controller_interface_mock.h"
#include "stack/acl/acl.h"
#include "stack/btm/btm_int_types.h"
#include "stack/btm/security_device_record.h"
@@ -26,6 +27,7 @@
#include "stack/include/acl_hci_link_interface.h"
#include "stack/include/hcidefs.h"
#include "test/common/mock_functions.h"
#include "test/mock/mock_main_shim_entry.h"
#include "types/hci_role.h"
#include "types/raw_address.h"

@@ -53,10 +55,14 @@ class StackAclTest : public testing::Test {
  void SetUp() override {
    reset_mock_function_count_map();
    bluetooth::common::InitFlags::Load(test_flags);
    bluetooth::hci::testing::mock_controller_ = &controller_;
  }
  void TearDown() override {
    bluetooth::hci::testing::mock_controller_ = nullptr;
  }
  void TearDown() override {}

  tBTM_SEC_DEV_REC device_record_;
  bluetooth::hci::testing::MockControllerInterface controller_;
};

TEST_F(StackAclTest, nop) {}