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

Commit 540b2f2d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

gd: Let acl manager handle encryption changes am: 49f615b2

Change-Id: Iaf6c33d6ec16fc66602fd8263d2e79da5a2bc66e
parents 2f0920a3 49f615b2
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(