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

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

ControllerTest: Set InitFlags for testing

Bug: 162623932
Tag: #gd-refactor
Test: atest bluetooth_test_gd --gtest_filter=*Controller*
Change-Id: I8e877fd7e92b00defee50482091774776d224ce7
parent 39c7b56b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@

#include "common/bind.h"
#include "common/callback.h"
#include "common/init_flags.h"
#include "hci/address.h"
#include "hci/hci_layer.h"
#include "os/thread.h"
@@ -267,6 +268,7 @@ class TestHciLayer : public HciLayer {
class ControllerTest : public ::testing::Test {
 protected:
  void SetUp() override {
    bluetooth::common::InitFlags::SetAllForTesting();
    test_hci_layer_ = new TestHciLayer;
    fake_registry_.InjectTestModule(&HciLayer::Factory, test_hci_layer_);
    client_handler_ = fake_registry_.GetTestModuleHandler(&HciLayer::Factory);