Add backup comparator test harness

This commit is contained in:
Fedor Indutny 2024-09-03 10:18:15 -07:00 committed by GitHub
parent 98eb6dec68
commit 84f1d98020
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 339 additions and 124 deletions

View file

@ -67,6 +67,7 @@ type StateType = Readonly<
export type PrepareLinkDataOptionsType = Readonly<{
deviceName: string;
backupFile?: Uint8Array;
isPlaintextBackup?: boolean;
}>;
export class Provisioner {
@ -150,6 +151,7 @@ export class Provisioner {
public prepareLinkData({
deviceName,
backupFile,
isPlaintextBackup,
}: PrepareLinkDataOptionsType): CreateLinkedDeviceOptionsType {
strictAssert(
this.state.step === Step.ReadyToLink,
@ -204,6 +206,7 @@ export class Provisioner {
profileKey,
deviceName,
backupFile,
isPlaintextBackup,
userAgent,
ourAci,
ourPni,