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

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

Use new controller mock in stack_btm_test

Bug: 301661850
Test: atest net_test_stack_btm
Flag: EXEMPT, test-only change
Change-Id: I8ceb203eba08b30391373fab22c2b3730f419668
parent 4d946e18
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -18,10 +18,12 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>

#include <cstddef>
#include <iostream>
#include <sstream>

#include "common/init_flags.h"
#include "hci/controller_interface_mock.h"
#include "hci/hci_layer_mock.h"
#include "internal_include/bt_target.h"
#include "stack/btm/btm_dev.h"
@@ -59,8 +61,12 @@ class StackBtmTest : public Test {
 protected:
  void SetUp() override {
    reset_mock_function_count_map();
    bluetooth::hci::testing::mock_controller_ = &controller_;
  }
  void TearDown() override {}
  void TearDown() override {
    bluetooth::hci::testing::mock_controller_ = nullptr;
  }
  bluetooth::hci::testing::MockControllerInterface controller_;
};

class StackBtmWithQueuesTest : public StackBtmTest {