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

Commit 49f615b2 authored by Chris Manton's avatar Chris Manton
Browse files

gd: Let acl manager handle encryption changes

Test: Compiles
Bug: 145638034
Change-Id: I5d1ba13b648d74dcb80b4ef94173b3ee6ea2942e
parent 3057c398
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ class SecurityInterface {
                              common::OnceCallback<void(CommandStatusView)> on_status, os::Handler* handler) = 0;

  static constexpr hci::EventCode SecurityEvents[] = {
      hci::EventCode::ENCRYPTION_CHANGE,
      hci::EventCode::CHANGE_CONNECTION_LINK_KEY_COMPLETE,
      hci::EventCode::MASTER_LINK_KEY_COMPLETE,
      hci::EventCode::RETURN_LINK_KEYS,
+0 −7
Original line number Diff line number Diff line
@@ -524,13 +524,6 @@ TEST_F(SecurityManagerChannelTest, send_delete_stored_link_key) {
  ASSERT_EQ(OpCode::DELETE_STORED_LINK_KEY, packet_view.GetOpCode());
}

TEST_F(SecurityManagerChannelTest, recv_encryption_change) {
  uint16_t connection_handle = 0x0;
  hci_layer_->IncomingEvent(
      hci::EncryptionChangeBuilder::Create(hci::ErrorCode::SUCCESS, connection_handle, hci::EncryptionEnabled::ON));
  ASSERT_TRUE(callback_->receivedEncryptionChange);
}

TEST_F(SecurityManagerChannelTest, recv_encryption_key_refresh) {
  uint16_t connection_handle = 0x0;
  hci_layer_->IncomingEvent(