コード例 #1
0
 def test_reject_unknown_command_in_le_sigling_channel(self):
     """
     Verify that the IUT is able to reject unknown command.
     """
     self._setup_link_from_cert()
     self.cert_l2cap.get_control_channel().send(
         l2cap_packets.InformationRequestBuilder(
             2, l2cap_packets.InformationRequestInfoType.EXTENDED_FEATURES_SUPPORTED))
     assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.LeCommandReject())
コード例 #2
0
ファイル: cert_l2cap.py プロジェクト: Blaze-AOSP/system_bt
 def _send_information_request(self, type):
     assertThat(self._scid).isEqualTo(1)
     signal_id = 3
     information_request = l2cap_packets.InformationRequestBuilder(
         signal_id, type)
     self.send(information_request)