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

Commit a775d5fd authored by Martin Brabham's avatar Martin Brabham
Browse files

Add Disconnect Complete Matcher

Listen for DISCONNECT COMPLETE on Cert side

Bug: 164495896
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I86720d75b72ddebb7a30430c74859792f6467807
parent 5d3a1fd3
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):