]> git.saurik.com Git - apple/security.git/blob - keychain/ckks/tests/CKKSMockSOSPresentAdapter.h
Security-59306.11.20.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 - (instancetype)initWithSelfPeer:(CKKSSOSSelfPeer*)selfPeer
23 trustedPeers:(NSSet<id<CKKSSOSPeerProtocol>>*)trustedPeers
24 essential:(BOOL)essential;
25
26 - (NSSet<id<CKKSRemotePeerProtocol>>*)allPeers;
27
28 @end
29
30 NS_ASSUME_NONNULL_END
31
32 #endif // OCTAGON