1 #ifndef SEC_SOSTransportTestTransports_h
2 #define SEC_SOSTransportTestTransports_h
4 typedef struct SOSTransportKeyParameterTest
*SOSTransportKeyParameterTestRef
;
5 typedef struct SOSTransportCircleTest
*SOSTransportCircleTestRef
;
6 typedef struct SOSTransportMessageTest
*SOSTransportMessageTestRef
;
9 CFDictionaryRef
SOSTransportMessageTestHandleMessages(SOSTransportMessageTestRef transport
, CFMutableDictionaryRef circle_peer_messages_table
, CFErrorRef
*error
);
11 void SOSAccountUpdateTestTransports(SOSAccountRef account
, CFDictionaryRef gestalt
);
13 SOSTransportKeyParameterTestRef
SOSTransportTestCreateKeyParameter(SOSAccountRef account
, CFStringRef name
, CFStringRef circleName
);
14 SOSTransportCircleTestRef
SOSTransportTestCreateCircle(SOSAccountRef account
, CFStringRef name
, CFStringRef circleName
);
15 SOSTransportMessageTestRef
SOSTransportTestCreateMessage(SOSAccountRef account
, CFStringRef name
, CFStringRef circleName
);
17 CFMutableArrayRef key_transports
;
18 CFMutableArrayRef circle_transports
;
19 CFMutableArrayRef message_transports
;
21 CFStringRef
SOSTransportMessageTestGetName(SOSTransportMessageTestRef transport
);
22 CFStringRef
SOSTransportCircleTestGetName(SOSTransportCircleTestRef transport
);
23 CFStringRef
SOSTransportKeyParameterTestGetName(SOSTransportKeyParameterTestRef transport
);
25 void SOSTransportKeyParameterTestSetName(SOSTransportKeyParameterTestRef transport
, CFStringRef accountName
);
26 void SOSTransportCircleTestSetName(SOSTransportCircleTestRef transport
, CFStringRef accountName
);
27 void SOSTransportMessageTestSetName(SOSTransportMessageTestRef transport
, CFStringRef accountName
);
30 CFMutableDictionaryRef
SOSTransportMessageTestGetChanges(SOSTransportMessageTestRef transport
);
31 CFMutableDictionaryRef
SOSTransportCircleTestGetChanges(SOSTransportCircleTestRef transport
);
32 CFMutableDictionaryRef
SOSTransportKeyParameterTestGetChanges(SOSTransportKeyParameterTestRef transport
);
34 SOSAccountRef
SOSTransportMessageTestGetAccount(SOSTransportMessageTestRef transport
);
35 SOSAccountRef
SOSTransportCircleTestGetAccount(SOSTransportCircleTestRef transport
);
36 SOSAccountRef
SOSTransportKeyParameterTestGetAccount(SOSTransportKeyParameterTestRef transport
);
38 bool SOSAccountInflateTestTransportsForCircle(SOSAccountRef account
, CFStringRef circleName
, CFStringRef accountName
, CFErrorRef
*error
);
39 bool SOSAccountEnsureFactoryCirclesTest(SOSAccountRef a
, CFStringRef accountName
);