2 // CKDSimulatedAccount.m
8 #import <Foundation/Foundation.h>
10 @interface CKDSimulatedAccount
: NSObject
<CKDAccount
>
12 @
property (readwrite
) NSMutableSet
<NSString
*>* keysToNotHandle
;
13 @
property (readwrite
) NSMutableSet
<NSString
*>* peersToNotSyncWith
;
14 @
property (readwrite
) NSMutableSet
<NSString
*>* backupPeersToNotSyncWith
;
15 @
property (readwrite
) NSError
* peerRegistrationFailureReason
;
17 + (instancetype
) account
;
18 - (instancetype
) init
;
20 - (NSSet
*) keysChanged
: (NSDictionary
<NSString
*, NSObject
*>*) keyValues error
: (NSError
**) error
;
21 - (bool) ensurePeerRegistration
: (NSError
**) error
;
23 - (NSSet
<NSString
*>*) syncWithPeers
: (NSSet
<NSString
*>*) peerIDs backups
: (NSSet
<NSString
*>*) backupPeerIDs error
: (NSError
**) error
;
24 - (bool) syncWithAllPeers
: (NSError
**) error
;
26 - (NSDictionary
<NSString
*, NSObject
*>*) extractKeyChanges
;
27 - (NSSet
<NSString
*>*) extractPeerChanges
;
28 - (NSSet
<NSString
*>*) extractBackupPeerChanges
;
30 - (BOOL
) extractRegistrationEnsured
;