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

Commit f65e2930 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

L2capTest: Add Query for 1.2 Features

L2CAP 2/6 requires L2CAP/COS/IEX/BV-01-C

Test: cert/run --host
Change-Id: I8158952b659336abf5240501143431e53c2a0f79
parent 741822a0
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -355,6 +355,20 @@ class L2capTest(GdBaseTestClass):
        assertThat(self.cert_l2cap.get_control_channel()).emits(
            L2capMatchers.CommandReject())

    @metadata(
        pts_test_id="L2CAP/COS/IEX/BV-01-C",
        pts_test_name="Query for 1.2 Features")
    def test_query_for_1_2_features(self):
        """
        Verify that the IUT transmits an information request command to solicit
        if the remote device supports Specification 1.2 features.
        """
        self._setup_link_from_cert()
        assertThat(self.cert_l2cap.get_control_channel()).emits(
            L2capMatchers.InformationRequestWithType(
                l2cap_packets.InformationRequestInfoType.
                EXTENDED_FEATURES_SUPPORTED))

    @metadata(
        pts_test_id="L2CAP/COS/IEX/BV-02-C",
        pts_test_name="Respond with 1.2 Features")