Searched refs:messageCaptor (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/ |
D | BleDeviceMessageStreamTest.java | 105 ArgumentCaptor<DeviceMessage> messageCaptor = ArgumentCaptor.forClass(DeviceMessage.class); in processPacket_notifiesWithEntireMessageForSinglePacketMessage() local 106 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_notifiesWithEntireMessageForSinglePacketMessage() 118 ArgumentCaptor<DeviceMessage> messageCaptor = ArgumentCaptor.forClass(DeviceMessage.class); in processPacket_notifiesWithEntireMessageForMultiPacketMessage() local 119 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_notifiesWithEntireMessageForMultiPacketMessage() 120 assertThat(Arrays.equals(data, messageCaptor.getValue().getMessage())).isTrue(); in processPacket_notifiesWithEntireMessageForMultiPacketMessage() 141 ArgumentCaptor<DeviceMessage> messageCaptor = ArgumentCaptor.forClass(DeviceMessage.class); in processPacket_receivingMultipleMessagesInParallelParsesSuccessfully() local 142 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_receivingMultipleMessagesInParallelParsesSuccessfully() 143 assertThat(Arrays.equals(data, messageCaptor.getValue().getMessage())).isTrue(); in processPacket_receivingMultipleMessagesInParallelParsesSuccessfully() 149 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_receivingMultipleMessagesInParallelParsesSuccessfully() 150 assertThat(Arrays.equals(data, messageCaptor.getValue().getMessage())).isTrue(); in processPacket_receivingMultipleMessagesInParallelParsesSuccessfully()
|
D | SecureBleChannelTest.java | 76 ArgumentCaptor<DeviceMessage> messageCaptor = in testEncryptionHandshake_Association() local 82 verify(mStreamMock).writeMessage(messageCaptor.capture(), any()); in testEncryptionHandshake_Association() 83 byte[] deviceIdMessage = messageCaptor.getValue().getMessage(); in testEncryptionHandshake_Association() 88 verify(mStreamMock, times(2)).writeMessage(messageCaptor.capture(), any()); in testEncryptionHandshake_Association() 89 byte[] response = messageCaptor.getValue().getMessage(); in testEncryptionHandshake_Association() 96 verify(mStreamMock, times(3)).writeMessage(messageCaptor.capture(), any()); in testEncryptionHandshake_Association() 97 byte[] confirmMessage = messageCaptor.getValue().getMessage(); in testEncryptionHandshake_Association()
|
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ |
D | ConnectedDeviceManagerTest.java | 184 ArgumentCaptor<DeviceMessage> messageCaptor = ArgumentCaptor.forClass(DeviceMessage.class); in sendMessageSecurely_sendsEncryptedMessage() local 185 verify(mMockCentralManager).sendMessage(eq(deviceId), messageCaptor.capture()); in sendMessageSecurely_sendsEncryptedMessage() 186 assertThat(messageCaptor.getValue().isMessageEncrypted()).isTrue(); in sendMessageSecurely_sendsEncryptedMessage() 207 ArgumentCaptor<DeviceMessage> messageCaptor = ArgumentCaptor.forClass(DeviceMessage.class); in sendMessageUnsecurely_sendsMessageWithoutEncryption() local 208 verify(mMockCentralManager).sendMessage(eq(deviceId), messageCaptor.capture()); in sendMessageUnsecurely_sendsMessageWithoutEncryption() 209 assertThat(messageCaptor.getValue().isMessageEncrypted()).isFalse(); in sendMessageUnsecurely_sendsMessageWithoutEncryption()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 509 ArgumentCaptor<Message> messageCaptor = ArgumentCaptor.forClass(Message.class); in flushHandler() local 511 verify(mHandler, atLeast(0)).sendMessageAtTime(messageCaptor.capture(), anyLong()); in flushHandler() 513 for (Message message : messageCaptor.getAllValues()) { in flushHandler()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | TelephonyConnectionServiceTest.java | 895 ArgumentCaptor<Integer> messageCaptor = ArgumentCaptor.forClass(Integer.class); in testSuppServiceNotification() local 897 messageCaptor.capture(), any()); in testSuppServiceNotification() 899 int message = messageCaptor.getValue(); in testSuppServiceNotification()
|