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

Commit 612b79b7 authored by Martin Brabham's avatar Martin Brabham
Browse files

Assert in default case

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest:test_dut_initiated_no_input_no_output_no_input_no_output_twice_bond_and_enforce
Test: atest --host bluetooth_test_gd
Change-Id: Id41c0be842663b342b2c89fabbbdd702174ba6d1
parent 10110c50
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -766,7 +766,8 @@ void SecurityManagerImpl::InternalEnforceSecurityPolicy(
      authentication_requirements = hci::AuthenticationRequirements::GENERAL_BONDING;
      break;
    default:
      // This will never happen because of check in IsSecurityRequirementSatisfied
      // I could hear the voice of Myles, "This should be an ASSERT!"
      ASSERT_LOG(false, "Unreachable code path");
      return;
  }