mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:46:53 +00:00
Include optional call ID hashes in call quality survey responses
This commit is contained in:
1 parent
d4581931ff
commit
f10cc26144
4 files changed
+17
No files matched your search
+3
@@ -67,6 +67,7 @@ class CallQualitySurveyManagerTest {
|
||||
final String asnRegion = "US";
|
||||
|
||||
final byte[] telemetryBytes = TestRandomUtil.nextBytes(32);
|
||||
final byte[] callIdHashBytes = TestRandomUtil.nextBytes(16);
|
||||
|
||||
final float connectionRttMedian = ThreadLocalRandom.current().nextFloat();
|
||||
final float audioRttMedian = ThreadLocalRandom.current().nextFloat();
|
||||
@@ -105,6 +106,7 @@ class CallQualitySurveyManagerTest {
|
||||
.setAudioSendPacketLossFraction(audioSendPacketLossFraction)
|
||||
.setVideoSendPacketLossFraction(videoSendPacketLossFraction)
|
||||
.setCallTelemetry(ByteString.copyFrom(telemetryBytes))
|
||||
.setCallIdHash(ByteString.copyFrom(callIdHashBytes))
|
||||
.build();
|
||||
|
||||
//noinspection unchecked
|
||||
@@ -145,6 +147,7 @@ class CallQualitySurveyManagerTest {
|
||||
assertEquals(audioSendPacketLossFraction, callQualitySurveyResponsePubSubMessage.getAudioSendPacketLossFraction());
|
||||
assertEquals(videoSendPacketLossFraction, callQualitySurveyResponsePubSubMessage.getVideoSendPacketLossFraction());
|
||||
assertArrayEquals(telemetryBytes, callQualitySurveyResponsePubSubMessage.getCallTelemetry().toByteArray());
|
||||
assertArrayEquals(callIdHashBytes, callQualitySurveyResponsePubSubMessage.getCallIdHash().toByteArray());
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
Reference in new issue
Block a user