]> git.saurik.com Git - apple/security.git/blob - keychain/ckks/tests/CKKSMockSOSPresentAdapter.h
Security-59306.101.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 (nullable) NSError* circleStatusError;
20
21 @property CKKSSOSSelfPeer* selfPeer;
22 @property NSMutableSet<id<CKKSSOSPeerProtocol>>* trustedPeers;
23
24 @property (nullable) void (^updateOctagonKeySetListener)(id<CKKSSelfPeer>);
25
26 - (instancetype)initWithSelfPeer:(CKKSSOSSelfPeer*)selfPeer
27 trustedPeers:(NSSet<id<CKKSSOSPeerProtocol>>*)trustedPeers
28 essential:(BOOL)essential;
29
30 - (NSSet<id<CKKSRemotePeerProtocol>>*)allPeers;
31
32 @end
33
34 NS_ASSUME_NONNULL_END
35
36 #endif // OCTAGON