• Home
  • Raw
  • Download

Lines Matching refs:L2capMatchers

30 from cert.matchers import L2capMatchers
89 request_matcher = L2capMatchers.ConfigurationRequestView(scid)
135 assertThat(cert_channel).emits(L2capMatchers.Data(b'abc'))
145 … assertThat(cert_channel).emitsNone(L2capMatchers.SFrame(req_seq=4), timeout=timedelta(seconds=1))
160 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc' * 34))
183 assertThat(cert_channel).emits(L2capMatchers.Data(b'hello'))
205 assertThat(cert_channel).emits(L2capMatchers.Data(b'a' * 48))
228 … assertThat(self.cert_l2cap.get_control_channel()).emitsNone(L2capMatchers.ConfigurationResponse())
243 … assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationResponse())
275 …assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationResponse(), at_…
286 L2capMatchers.ConfigurationRequestView(scid)).then().send_configuration_response(
291 …assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationRequest(), at_l…
330 assertThat(cert_channel).emits(L2capMatchers.Data(b"a" * 44))
414 assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.EchoResponse())
427 assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.CommandReject())
437 L2capMatchers.InformationRequestWithType(
451 assertThat(control_channel).emits(L2capMatchers.InformationResponseExtendedFeatures())
468 …assertThat(control_channel).emits(L2capMatchers.InformationResponseExtendedFeatures(supports_ertm=…
485 …assertThat(control_channel).emits(L2capMatchers.InformationResponseExtendedFeatures(supports_strea…
501 …assertThat(control_channel).emits(L2capMatchers.InformationResponseExtendedFeatures(supports_fcs=T…
520 L2capMatchers.InformationResponseExtendedFeatures(supports_fixed_channels=True))
530L2capMatchers.InformationRequestWithType(l2cap_packets.InformationRequestInfoType.FIXED_CHANNELS_S…
543 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc'))
557 assertThat(cert_channel).emits(L2capMatchers.IFrameWithFcs(payload=b"abc"))
573 assertThat(cert_channel).emits(L2capMatchers.IFrameWithFcs(payload=b"abc"))
586 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b"abc"))
599 assertThat(dut_channel).emits(L2capMatchers.PacketPayloadRawData(SAMPLE_PACKET_DATA))
612 assertThat(cert_channel).emits(L2capMatchers.IFrameWithFcs(tx_seq=0, payload=b"abc"))
625 assertThat(dut_channel).emits(L2capMatchers.PacketPayloadRawData(SAMPLE_PACKET_DATA))
640 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b"abc"))
645 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=1, payload=b"abc"))
650 assertThat(cert_channel).emits(L2capMatchers.PartialData(b"abc"))
667 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=i + 1))
670 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=4))
674 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=5))
677 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=6))
692 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=i + 1))
694 … assertThat(cert_channel).emitsNone(L2capMatchers.SFrame(req_seq=4), timeout=timedelta(seconds=1))
717 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc'))
718 assertThat(cert_channel).emitsNone(L2capMatchers.IFrame(tx_seq=1, payload=b'def'))
721 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=1))
742 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc'))
744 L2capMatchers.IFrame(tx_seq=1, payload=b'abc'), timeout=timedelta(seconds=0.5))
748 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=1, payload=b'def'))
770 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc'))
780 …assertThat(cert_channel).emits(L2capMatchers.SFrame(s=l2cap_packets.SupervisoryFunction.RECEIVER_R…
783 …assertThat(cert_channel).emits(L2capMatchers.SFrame(s=l2cap_packets.SupervisoryFunction.RECEIVER_N…
802 assertThat(cert_channel).emits(L2capMatchers.SFrame(p=l2cap_packets.Poll.POLL))
816 assertThat(cert_channel).emits(L2capMatchers.SFrame(f=Final.POLL_RESPONSE))
830 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc'))
831 … assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=0, p=Poll.POLL, f=Final.NOT_SET))
864 …assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0), L2capMatchers.SFrame(p=Poll.POLL)).…
885L2capMatchers.IFrame(tx_seq=0, payload=b'abc'), L2capMatchers.IFrame(tx_seq=1, payload=b'abc')).in…
890L2capMatchers.IFrame(tx_seq=0, payload=b'abc'), L2capMatchers.IFrame(tx_seq=1, payload=b'abc')).in…
909L2capMatchers.IFrame(tx_seq=0, payload=b'abc'), L2capMatchers.IFrame(tx_seq=1, payload=b'abc'),
910 L2capMatchers.IFrame(tx_seq=2, payload=b'abc')).inOrder()
915 L2capMatchers.IFrame(tx_seq=1, payload=b'abc', f=Final.POLL_RESPONSE),
916 L2capMatchers.IFrame(tx_seq=3, payload=b'abc')).inOrder()
932L2capMatchers.IFrame(tx_seq=0, payload=b'abc'), L2capMatchers.IFrame(tx_seq=1, payload=b'abc'),
933 L2capMatchers.IFrame(tx_seq=2, payload=b'abc')).inOrder()
936 … assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=1, payload=b'abc', f=Final.NOT_SET))
938 … assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=3, payload=b'abc', f=Final.NOT_SET))
957L2capMatchers.SFrame(req_seq=1, f=Final.NOT_SET, s=SupervisoryFunction.REJECT, p=Poll.NOT_SET))
962L2capMatchers.SFrame(req_seq=i + 1, f=Final.NOT_SET, s=SupervisoryFunction.RECEIVER_READY))
979 assertThat(cert_channel).emits(L2capMatchers.SFrame(p=l2cap_packets.Poll.POLL))
982 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0))
997 assertThat(cert_channel).emits(L2capMatchers.SFrame(p=Poll.POLL))
1000 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0))
1015 assertThat(cert_channel).emits(L2capMatchers.SFrame(p=l2cap_packets.Poll.POLL))
1018 assertThat(cert_channel).emitsNone(L2capMatchers.IFrame(tx_seq=0))
1038 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc'))
1048 …assertThat(cert_channel).emits(L2capMatchers.SFrame(s=l2cap_packets.SupervisoryFunction.RECEIVER_R…
1051 …assertThat(cert_channel).emits(L2capMatchers.SFrame(s=l2cap_packets.SupervisoryFunction.RECEIVER_N…
1055L2capMatchers.SFrame(s=l2cap_packets.SupervisoryFunction.RECEIVER_READY, p=l2cap_packets.Poll.POLL…
1074L2capMatchers.IFrameStart(tx_seq=0, payload=b'abc'), L2capMatchers.IFrame(tx_seq=1, payload=b'abc'…
1075 L2capMatchers.IFrame(tx_seq=2, payload=b'abc')).inOrder()
1082L2capMatchers.IFrameStart(tx_seq=3, payload=b'def'), L2capMatchers.IFrame(tx_seq=4, payload=b'def'…
1083 L2capMatchers.IFrame(tx_seq=5, payload=b'def')).inOrder()
1099 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=1))
1102 assertThat(cert_channel).emits(L2capMatchers.SFrame(s=SupervisoryFunction.REJECT))
1106 …assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=1, f=l2cap_packets.Final.POLL_RESPONSE…
1109 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=i + 1))
1125 L2capMatchers.IFrame(tx_seq=0), L2capMatchers.IFrame(tx_seq=1),
1126 L2capMatchers.SFrame(p=Poll.POLL)).inOrder()
1132 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0))
1153 L2capMatchers.IFrame(tx_seq=0),
1154 L2capMatchers.IFrame(tx_seq=1),
1155 L2capMatchers.SFrame(p=l2cap_packets.Poll.POLL)).inOrder()
1162 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0))
1163 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=1))
1184 L2capMatchers.IFrame(tx_seq=0),
1185 L2capMatchers.IFrame(tx_seq=1),
1186 L2capMatchers.SFrame(p=l2cap_packets.Poll.POLL)).inOrder()
1194 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0))
1195 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=1))
1209 …assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationRequestWithErtm…
1239 … assertThat(self.cert_l2cap.get_control_channel()).emitsNone(L2capMatchers.ConnectionRequest(0x33))