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

Commit c4f35115 authored by Henri Chataing's avatar Henri Chataing Committed by Automerger Merge Worker
Browse files

Merge "RootCanal: Rename HCI commands in LL tests" am: 23225492

parents 4690e147 23225492
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@ class Test(ControllerTest):
    Max_SDU_P_TO_C = 16
    PHY_C_TO_P = 0x1
    PHY_P_TO_C = 0x1
    Max_Transport_Latency_C_TO_P = 60000  # 60ms
    Max_Transport_Latency_P_TO_C = 60000  # 60ms
    Max_Transport_Latency_C_TO_P = 60  # 60ms
    Max_Transport_Latency_P_TO_C = 60  # 60ms
    RTN_C_TO_P = 3
    RTN_P_TO_C = 3

+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ class Test(ControllerTest):
        await self.expect_evt(
            hci.LeSetAdvertisingParametersComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

        controller.send_cmd(hci.LeSetAdvertisingDataRaw())
        controller.send_cmd(hci.LeSetAdvertisingData())

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class Test(ControllerTest):
        await self.expect_evt(
            hci.LeSetAdvertisingParametersComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

        controller.send_cmd(hci.LeSetAdvertisingDataRaw())
        controller.send_cmd(hci.LeSetAdvertisingData())

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

+4 −4
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ class Test(ControllerTest):
        # HCI_Command_Complete in response. The data element used in the command is the length of
        # the data field. The data length is 1 byte.
        advertising_data = [1]
        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=advertising_data))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=advertising_data))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

@@ -67,7 +67,7 @@ class Test(ControllerTest):

        # 9. Upper Tester sends an HCI_LE_Set_Advertising_Data to configure the IUT to send advertising
        # packets without advertising data and receives an HCI_Command_Complete event in response.
        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=[]))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=[]))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

@@ -101,7 +101,7 @@ class Test(ControllerTest):
        # zeroes. The data length is either 31 bytes by default or it may be specified by IXIT value if less
        # than 31 bytes.
        advertising_data = [31] + [0] * 30
        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=advertising_data))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=advertising_data))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

@@ -121,7 +121,7 @@ class Test(ControllerTest):

        await self.expect_evt(hci.LeSetAdvertisingEnableComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=[]))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=[]))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

+4 −4
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ class Test(ControllerTest):
        # HCI_Command_Complete in response. The data element used in the command is the length of
        # the data field. The data length is 1 byte.
        advertising_data = [1]
        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=advertising_data))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=advertising_data))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

@@ -66,7 +66,7 @@ class Test(ControllerTest):

        # 9. Upper Tester sends an HCI_LE_Set_Advertising_Data to configure the IUT to send advertising
        # packets without advertising data and receives an HCI_Command_Complete event in response.
        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=[]))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=[]))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

@@ -99,7 +99,7 @@ class Test(ControllerTest):
        # data field in the first octet encoded unsigned least significant bit first and the rest of the octets
        # zeroes. The data length is 31 bytes.
        advertising_data = [31] + [0] * 30
        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=advertising_data))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=advertising_data))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

@@ -119,7 +119,7 @@ class Test(ControllerTest):

        await self.expect_evt(hci.LeSetAdvertisingEnableComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

        controller.send_cmd(hci.LeSetAdvertisingDataRaw(advertising_data=[]))
        controller.send_cmd(hci.LeSetAdvertisingData(advertising_data=[]))

        await self.expect_evt(hci.LeSetAdvertisingDataComplete(status=ErrorCode.SUCCESS, num_hci_command_packets=1))

Loading