1 #ifndef FakeSOSControl_h
2 #define FakeSOSControl_h
4 #import <Foundation/Foundation.h>
5 #import <Security/Security.h>
6 #import <Security/SecKeyPriv.h>
7 #import <Security/SecItemPriv.h>
8 #import "keychain/SecureObjectSync/SOSAccount.h"
9 #include "keychain/SecureObjectSync/SOSAccountPriv.h"
10 #include "keychain/SecureObjectSync/SOSCircle.h"
11 #import <KeychainCircle/KeychainCircle.h>
12 #import "utilities/SecCFWrappers.h"
14 NS_ASSUME_NONNULL_BEGIN
16 @interface FCPairingFakeSOSControl
: NSObject
<SOSControlProtocol
>
17 @
property (assign
) SecKeyRef accountPrivateKey
;
18 @
property (assign
) SecKeyRef accountPublicKey
;
19 @
property (assign
) SecKeyRef deviceKey
;
20 @
property (assign
) SecKeyRef octagonSigningKey
;
21 @
property (assign
) SecKeyRef octagonEncryptionKey
;
22 @
property (assign
) SOSCircleRef circle
;
23 @
property (assign
) SOSFullPeerInfoRef fullPeerInfo
;
24 @
property (assign
) bool application
;
25 - (instancetype
)initWithRandomAccountKey
:(bool)randomAccountKey circle
:(SOSCircleRef
)circle
;
27 - (SOSPeerInfoRef
)peerInfo
;
28 - (void)signApplicationIfNeeded
;
31 @interface FakeNSXPCConnection
: NSObject
32 - (instancetype
) initWithControl
:(id
<SOSControlProtocol
>)control
;
33 - (id
)remoteObjectProxyWithErrorHandler
:(void(^)(NSError
* _Nonnull error
))failureHandler
;
36 @interface
FakeNSXPCConnection ()
37 @property id
<SOSControlProtocol
> control
;
41 #endif /* FakeSOSControl_h */