Add test to verify sync behavior during VERIFIED to DEFAULT change.

This commit is contained in:
Cody Henthorne
2023-07-11 10:36:00 -04:00
committed by Clark Chen
parent b277a8c5e0
commit bfcd57881e
3 changed files with 65 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
package org.thoughtcrime.securesms.storage;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import org.whispersystems.signalservice.api.storage.SignalRecord;
@@ -13,7 +14,8 @@ public class StorageRecordUpdate<E extends SignalRecord> {
private final E oldRecord;
private final E newRecord;
StorageRecordUpdate(@NonNull E oldRecord, @NonNull E newRecord) {
@VisibleForTesting
public StorageRecordUpdate(@NonNull E oldRecord, @NonNull E newRecord) {
this.oldRecord = oldRecord;
this.newRecord = newRecord;
}