use of org.signal.storageservice.protos.groups.AccessControl in project Signal-Android by WhisperSystems.
the class GroupsV2Operations_decrypt_group_Test method pass_through_access_control_field_5.
@Test
public void pass_through_access_control_field_5() throws VerificationFailedException, InvalidGroupStateException {
AccessControl accessControl = AccessControl.newBuilder().setMembers(AccessControl.AccessRequired.ADMINISTRATOR).setAttributes(AccessControl.AccessRequired.MEMBER).setAddFromInviteLink(AccessControl.AccessRequired.UNSATISFIABLE).build();
Group group = Group.newBuilder().setAccessControl(accessControl).build();
DecryptedGroup decryptedGroup = groupOperations.decryptGroup(group);
assertEquals(accessControl, decryptedGroup.getAccessControl());
}
use of org.signal.storageservice.protos.groups.AccessControl in project Signal-Android by signalapp.
the class GroupsV2Operations_decrypt_group_Test method pass_through_access_control_field_5.
@Test
public void pass_through_access_control_field_5() throws VerificationFailedException, InvalidGroupStateException {
AccessControl accessControl = AccessControl.newBuilder().setMembers(AccessControl.AccessRequired.ADMINISTRATOR).setAttributes(AccessControl.AccessRequired.MEMBER).setAddFromInviteLink(AccessControl.AccessRequired.UNSATISFIABLE).build();
Group group = Group.newBuilder().setAccessControl(accessControl).build();
DecryptedGroup decryptedGroup = groupOperations.decryptGroup(group);
assertEquals(accessControl, decryptedGroup.getAccessControl());
}
Aggregations