def setup_test(self): self.device_under_test = self.gd_devices[0] self.cert_device = self.gd_cert_devices[0] self.device_under_test.rootservice.StartStack( facade_rootservice_pb2.StartStackRequest( module_under_test=facade_rootservice_pb2.BluetoothModule.Value( 'L2CAP'), )) self.cert_device.rootservice.StartStack( cert_rootservice_pb2.StartStackRequest( module_to_test=cert_rootservice_pb2.BluetoothModule.Value( 'L2CAP'), ))
def setup_test(self): self.device_under_test = self.gd_devices[0] self.cert_device = self.gd_cert_devices[0] self.device_under_test.rootservice.StartStack( facade_rootservice_pb2.StartStackRequest( module_under_test=facade_rootservice_pb2.BluetoothModule.Value( 'HAL'), )) self.cert_device.rootservice.StartStack( cert_rootservice_pb2.StartStackRequest( module_to_test=cert_rootservice_pb2.BluetoothModule.Value( 'HAL'), )) self.device_under_test.wait_channel_ready() self.cert_device.wait_channel_ready() self.device_under_test.hal.SendHciResetCommand(empty_pb2.Empty()) self.cert_device.hal.SendHciResetCommand(empty_pb2.Empty()) self.hci_event_stream = self.device_under_test.hal.hci_event_stream
def setup_test(self): self.device_under_test = self.gd_devices[0] self.cert_device = self.gd_cert_devices[0] self.device_under_test.rootservice.StartStack( facade_rootservice_pb2.StartStackRequest( module_under_test=facade_rootservice_pb2.BluetoothModule.Value( 'HCI'), )) self.cert_device.rootservice.StartStack( cert_rootservice_pb2.StartStackRequest( module_to_test=cert_rootservice_pb2.BluetoothModule.Value( 'HCI'), )) self.device_under_test.wait_channel_ready() self.cert_device.wait_channel_ready() self.device_under_test.hci.SetPageScanMode( hci_facade_pb2.PageScanMode(enabled=True)) self.cert_device.hci.SetPageScanMode( hci_cert_pb2.PageScanMode(enabled=True)) dut_address = self.device_under_test.hci.ReadLocalAddress( empty_pb2.Empty()).address self.device_under_test.address = dut_address cert_address = self.cert_device.hci.ReadLocalAddress( empty_pb2.Empty()).address self.cert_device.address = cert_address self.dut_connection_complete_stream = self.device_under_test.hci.connection_complete_stream self.dut_disconnection_stream = self.device_under_test.hci.disconnection_stream self.dut_connection_failed_stream = self.device_under_test.hci.connection_failed_stream self.dut_address = common_pb2.BluetoothAddress( address=self.device_under_test.address) self.cert_address = common_pb2.BluetoothAddress( address=self.cert_device.address)