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

Commit e6ab1fe7 authored by Myles Watson's avatar Myles Watson Committed by Gerrit Code Review
Browse files

Merge "stack_btm_power_mode_test: Remove unused flags" into main

parents 3bab14a8 e80e9dc1
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -18,7 +18,6 @@


#include <cstdint>
#include <cstdint>


#include "common/init_flags.h"
#include "hci/controller_interface_mock.h"
#include "hci/controller_interface_mock.h"
#include "stack/include/acl_api.h"
#include "stack/include/acl_api.h"
#include "stack/include/acl_hci_link_interface.h"
#include "stack/include/acl_hci_link_interface.h"
@@ -30,10 +29,6 @@
using testing::Return;
using testing::Return;


namespace {
namespace {
const char* test_flags[] = {
        "INIT_default_log_level_str=LOG_DEBUG",
        nullptr,
};


const RawAddress kRawAddress = RawAddress({0x11, 0x22, 0x33, 0x44, 0x55, 0x66});
const RawAddress kRawAddress = RawAddress({0x11, 0x22, 0x33, 0x44, 0x55, 0x66});
const uint16_t kHciHandle = 123;
const uint16_t kHciHandle = 123;
@@ -57,7 +52,6 @@ protected:
    bluetooth::hci::testing::mock_controller_ = &controller_;
    bluetooth::hci::testing::mock_controller_ = &controller_;
    power_mode_callback_queue.clear();
    power_mode_callback_queue.clear();
    reset_mock_function_count_map();
    reset_mock_function_count_map();
    bluetooth::common::InitFlags::Load(test_flags);
    ASSERT_EQ(BTM_SUCCESS, BTM_PmRegister(BTM_PM_REG_SET, &pm_id_,
    ASSERT_EQ(BTM_SUCCESS, BTM_PmRegister(BTM_PM_REG_SET, &pm_id_,
                                          [](const RawAddress& p_bda, tBTM_PM_STATUS status,
                                          [](const RawAddress& p_bda, tBTM_PM_STATUS status,
                                             uint16_t value, tHCI_STATUS hci_status) {
                                             uint16_t value, tHCI_STATUS hci_status) {