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

Commit 247b13b2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add Disconnect Complete Matcher" am: fb59262e

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1404021

Change-Id: Idcad6b84bb8623aff46aaafe1ea466e626881231
parents bef0b916 fb59262e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ class HciMatchers(object):
    def Disconnect():
        return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECT)

    @staticmethod
    def DisconnectionComplete():
        return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECTION_COMPLETE)


class NeighborMatchers(object):

+1 −0
Original line number Diff line number Diff line
@@ -210,6 +210,7 @@ class CertSecurity(PySecurity):
        """
            Cert side needs to pass
        """
        assertThat(self._hci_event_stream).emits(HciMatchers.DisconnectionComplete())
        pass

    def close(self):