Add message processing performance test.

This commit is contained in:
Cody Henthorne
2023-03-03 11:42:30 -05:00
committed by Greyson Parrelli
parent f719dcca6d
commit c0aff46e31
18 changed files with 704 additions and 1646 deletions

View File

@@ -2209,7 +2209,8 @@ public class SignalServiceMessageSender {
return new OutgoingPushMessageList(recipient.getIdentifier(), timestamp, messages, online, urgent);
}
private OutgoingPushMessage getEncryptedMessage(SignalServiceAddress recipient,
// Visible for testing only
public OutgoingPushMessage getEncryptedMessage(SignalServiceAddress recipient,
Optional<UnidentifiedAccess> unidentifiedAccess,
int deviceId,
EnvelopeContent plaintext,
@@ -2248,7 +2249,6 @@ public class SignalServiceMessageSender {
}
}
private List<PreKeyBundle> getPreKeys(SignalServiceAddress recipient, Optional<UnidentifiedAccess> unidentifiedAccess, int deviceId, boolean story) throws IOException {
try {
return socket.getPreKeys(recipient, unidentifiedAccess, deviceId);

View File

@@ -12,13 +12,13 @@ import com.fasterxml.jackson.annotation.JsonProperty;
public class OutgoingPushMessage {
@JsonProperty
private int type;
public int type;
@JsonProperty
private int destinationDeviceId;
public int destinationDeviceId;
@JsonProperty
private int destinationRegistrationId;
public int destinationRegistrationId;
@JsonProperty
private String content;
public String content;
public OutgoingPushMessage() {}