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

Commit 9c4aacae authored by Chienyuan's avatar Chienyuan
Browse files

LeAddressManagerTest: Set InitFlags for testing

Bug: 152348535
Tag: #gd-refactor
Test: atest bluetooth_test_gd --gtest_filter=*LeAddressManagerWithSingleClientTest*
Change-Id: I2997aab586ad6583a66fae03a6644c16199089bd
parent f8567ab8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@

#include <gtest/gtest.h>

#include "common/init_flags.h"
#include "os/log.h"
#include "packet/raw_builder.h"

@@ -271,6 +272,7 @@ TEST_F(LeAddressManagerTest, DISABLED_rotator_address_for_multiple_clients) {
class LeAddressManagerWithSingleClientTest : public LeAddressManagerTest {
 public:
  void SetUp() override {
    bluetooth::common::InitFlags::SetAllForTesting();
    thread_ = new Thread("thread", Thread::Priority::NORMAL);
    handler_ = new Handler(thread_);
    test_hci_layer_ = new TestHciLayer;