]> git.saurik.com Git - apple/security.git/blob - keychain/ckks/tests/CKKSMockSOSPresentAdapter.h
Security-59306.61.1.tar.gz
[apple/security.git] / keychain / ckks / tests / CKKSMockSOSPresentAdapter.h
1
2 #import <Foundation/Foundation.h>
3 #if OCTAGON
4
5 #import "keychain/ot/OTSOSAdapter.h"
6 #include "keychain/SecureObjectSync/SOSAccount.h"
7
8 NS_ASSUME_NONNULL_BEGIN
9
10 @interface CKKSMockSOSPresentAdapter : NSObject <OTSOSAdapter>
11
12 // If you fill these in, the OTSOSAdapter methods will error with these errors.
13 @property (nullable) NSError* selfPeerError;
14 @property (nullable) NSError* trustedPeersError;
15
16 @property bool excludeSelfPeerFromTrustSet;
17
18 @property SOSCCStatus circleStatus;
19 @property CKKSSOSSelfPeer* selfPeer;
20 @property NSMutableSet<id<CKKSSOSPeerProtocol>>* trustedPeers;
21
22 @property (nullable) void (^updateOctagonKeySetListener)(id<CKKSSelfPeer>);
23
24 - (instancetype)initWithSelfPeer:(CKKSSOSSelfPeer*)selfPeer
25 trustedPeers:(NSSet<id<CKKSSOSPeerProtocol>>*)trustedPeers
26 essential:(BOOL)essential;
27
28 - (NSSet<id<CKKSRemotePeerProtocol>>*)allPeers;
29
30 @end
31
32 NS_ASSUME_NONNULL_END
33
34 #endif // OCTAGON