]> git.saurik.com Git - apple/security.git/blob - keychain/ckks/tests/CKKSMockSOSPresentAdapter.h
Security-59754.80.3.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 aksLocked;
17
18 @property bool excludeSelfPeerFromTrustSet;
19
20 @property SOSCCStatus circleStatus;
21 @property (nullable) NSError* circleStatusError;
22
23 @property CKKSSOSSelfPeer* selfPeer;
24 @property NSMutableSet<id<CKKSSOSPeerProtocol>>* trustedPeers;
25
26 @property BOOL safariViewEnabled;
27
28 @property BOOL ckks4AllStatus;
29 @property BOOL ckks4AllStatusIsSet;
30
31 @property (nullable) void (^updateOctagonKeySetListener)(id<CKKSSelfPeer>);
32
33 - (instancetype)initWithSelfPeer:(CKKSSOSSelfPeer*)selfPeer
34 trustedPeers:(NSSet<id<CKKSSOSPeerProtocol>>*)trustedPeers
35 essential:(BOOL)essential;
36
37 - (NSSet<id<CKKSRemotePeerProtocol>>*)allPeers;
38
39 @end
40
41 NS_ASSUME_NONNULL_END
42
43 #endif // OCTAGON