]> git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/Regressions/CKDSimulatedAccount.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / SecureObjectSync / Regressions / CKDSimulatedAccount.h
1 //
2 // CKDSimulatedAccount.m
3 // Security
4 //
5
6 #import "CKDAccount.h"
7
8 #import <Foundation/Foundation.h>
9
10 @interface CKDSimulatedAccount : NSObject<CKDAccount>
11
12 @property (readwrite) NSMutableSet<NSString*>* keysToNotHandle;
13 @property (readwrite) NSMutableSet<NSString*>* peersToNotSyncWith;
14 @property (readwrite) NSMutableSet<NSString*>* backupPeersToNotSyncWith;
15 @property (readwrite) NSError* peerRegistrationFailureReason;
16
17 + (instancetype) account;
18 - (instancetype) init;
19
20 - (NSSet*) keysChanged: (NSDictionary<NSString*, NSObject*>*) keyValues error: (NSError**) error;
21 - (bool) ensurePeerRegistration: (NSError**) error;
22
23 - (NSSet<NSString*>*) syncWithPeers: (NSSet<NSString*>*) peerIDs backups: (NSSet<NSString*>*) backupPeerIDs error: (NSError**) error;
24 - (bool) syncWithAllPeers: (NSError**) error;
25
26 - (NSDictionary<NSString*, NSObject*>*) extractKeyChanges;
27 - (NSSet<NSString*>*) extractPeerChanges;
28 - (NSSet<NSString*>*) extractBackupPeerChanges;
29
30 - (BOOL) extractRegistrationEnsured;
31
32 @end