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 (nullable
) NSError
* circleStatusError
;
21 @property CKKSSOSSelfPeer
* selfPeer
;
22 @property NSMutableSet
<id
<CKKSSOSPeerProtocol
>>* trustedPeers
;
24 @
property (nullable
) void (^updateOctagonKeySetListener
)(id
<CKKSSelfPeer
>);
26 - (instancetype
)initWithSelfPeer
:(CKKSSOSSelfPeer
*)selfPeer
27 trustedPeers
:(NSSet
<id
<CKKSSOSPeerProtocol
>>*)trustedPeers
28 essential
:(BOOL
)essential
;
30 - (NSSet
<id
<CKKSRemotePeerProtocol
>>*)allPeers
;