2 #import <Foundation/Foundation.h>
5 #import "keychain/ot/OTSOSAdapter.h"
6 #include "keychain/SecureObjectSync/SOSAccount.h"
8 NS_ASSUME_NONNULL_BEGIN
10 @interface CKKSMockSOSPresentAdapter
: NSObject
<OTSOSAdapter
>
12 // If you fill these in, the OTSOSAdapter methods will error with these errors.
13 @
property (nullable
) NSError
* selfPeerError
;
14 @
property (nullable
) NSError
* trustedPeersError
;
16 @property
bool excludeSelfPeerFromTrustSet
;
18 @property SOSCCStatus circleStatus
;
19 @property CKKSSOSSelfPeer
* selfPeer
;
20 @property NSMutableSet
<id
<CKKSSOSPeerProtocol
>>* trustedPeers
;
22 @
property (nullable
) void (^updateOctagonKeySetListener
)(id
<CKKSSelfPeer
>);
24 - (instancetype
)initWithSelfPeer
:(CKKSSOSSelfPeer
*)selfPeer
25 trustedPeers
:(NSSet
<id
<CKKSSOSPeerProtocol
>>*)trustedPeers
26 essential
:(BOOL
)essential
;
28 - (NSSet
<id
<CKKSRemotePeerProtocol
>>*)allPeers
;