use of org.signal.storageservice.protos.groups.Group in project Signal-Android by WhisperSystems.
the class GroupsV2Operations_decrypt_group_Test method decrypt_message_timer_field_4.
@Test
public void decrypt_message_timer_field_4() throws VerificationFailedException, InvalidGroupStateException {
Group group = Group.newBuilder().setDisappearingMessagesTimer(groupOperations.encryptTimer(123)).build();
DecryptedGroup decryptedGroup = groupOperations.decryptGroup(group);
assertEquals(123, decryptedGroup.getDisappearingMessagesTimer().getDuration());
}
use of org.signal.storageservice.protos.groups.Group in project Signal-Android by WhisperSystems.
the class GroupsV2Operations_decrypt_group_Test method decrypt_title_field_2.
@Test
public void decrypt_title_field_2() throws VerificationFailedException, InvalidGroupStateException {
Group group = Group.newBuilder().setTitle(groupOperations.encryptTitle("Title!")).build();
DecryptedGroup decryptedGroup = groupOperations.decryptGroup(group);
assertEquals("Title!", decryptedGroup.getTitle());
}
use of org.signal.storageservice.protos.groups.Group in project Signal-Android by WhisperSystems.
the class GroupsV2Operations_decrypt_group_Test method set_revision_field_6.
@Test
public void set_revision_field_6() throws VerificationFailedException, InvalidGroupStateException {
Group group = Group.newBuilder().setRevision(99).build();
DecryptedGroup decryptedGroup = groupOperations.decryptGroup(group);
assertEquals(99, decryptedGroup.getRevision());
}
Aggregations