use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class DecryptedGroupUtil_empty_Test method not_empty_with_promote_delete_pending_members_field_9.
@Test
public void not_empty_with_promote_delete_pending_members_field_9() {
DecryptedGroupChange change = DecryptedGroupChange.newBuilder().addPromotePendingMembers(member(UUID.randomUUID())).build();
assertFalse(DecryptedGroupUtil.changeIsEmpty(change));
assertFalse(DecryptedGroupUtil.changeIsEmptyExceptForProfileKeyChanges(change));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class DecryptedGroupUtil_empty_Test method not_empty_with_modify_member_roles_field_5.
@Test
public void not_empty_with_modify_member_roles_field_5() {
DecryptedGroupChange change = DecryptedGroupChange.newBuilder().addModifyMemberRoles(promoteAdmin(UUID.randomUUID())).build();
assertFalse(DecryptedGroupUtil.changeIsEmpty(change));
assertFalse(DecryptedGroupUtil.changeIsEmptyExceptForProfileKeyChanges(change));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class DecryptedGroupUtil_empty_Test method not_empty_with_an_add_requesting_member_field_16.
@Test
public void not_empty_with_an_add_requesting_member_field_16() {
DecryptedGroupChange change = DecryptedGroupChange.newBuilder().addNewRequestingMembers(DecryptedRequestingMember.getDefaultInstance()).build();
assertFalse(DecryptedGroupUtil.changeIsEmpty(change));
assertFalse(DecryptedGroupUtil.changeIsEmptyExceptForProfileKeyChanges(change));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class DecryptedGroupUtil_empty_Test method not_empty_with_modify_member_access_field_14.
@Test
public void not_empty_with_modify_member_access_field_14() {
DecryptedGroupChange change = DecryptedGroupChange.newBuilder().setNewMemberAccess(AccessControl.AccessRequired.MEMBER).build();
assertFalse(DecryptedGroupUtil.changeIsEmpty(change));
assertFalse(DecryptedGroupUtil.changeIsEmptyExceptForProfileKeyChanges(change));
}
use of org.signal.storageservice.protos.groups.local.DecryptedGroupChange in project Signal-Android by WhisperSystems.
the class DecryptedGroupUtil_empty_Test method not_empty_with_modify_disappearing_message_timer_field_12.
@Test
public void not_empty_with_modify_disappearing_message_timer_field_12() {
DecryptedGroupChange change = DecryptedGroupChange.newBuilder().setNewTimer(DecryptedTimer.newBuilder().setDuration(60)).build();
assertFalse(DecryptedGroupUtil.changeIsEmpty(change));
assertFalse(DecryptedGroupUtil.changeIsEmptyExceptForProfileKeyChanges(change));
}
Aggregations