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
;
7 typedef struct SOSTransportMessageIDSTest
*SOSTransportMessageIDSTestRef
;
10 CFDictionaryRef
SOSTransportMessageTestHandleMessages(SOSTransportMessageTestRef transport
, CFMutableDictionaryRef circle_peer_messages_table
, CFErrorRef
*error
);
12 void SOSAccountUpdateTestTransports(SOSAccountRef account
, CFDictionaryRef gestalt
);
14 SOSTransportKeyParameterTestRef
SOSTransportTestCreateKeyParameter(SOSAccountRef account
, CFStringRef name
, CFStringRef circleName
);
15 SOSTransportCircleTestRef
SOSTransportTestCreateCircle(SOSAccountRef account
, CFStringRef name
, CFStringRef circleName
);
16 SOSTransportMessageTestRef
SOSTransportTestCreateMessage(SOSAccountRef account
, CFStringRef name
, CFStringRef circleName
);
17 bool SOSTransportCircleTestRemovePendingChange(SOSTransportCircleRef transport
, CFStringRef circleName
, CFErrorRef
*error
);
19 extern CFMutableArrayRef key_transports
;
20 extern CFMutableArrayRef circle_transports
;
21 extern CFMutableArrayRef message_transports
;
23 CFStringRef
SOSTransportMessageTestGetName(SOSTransportMessageTestRef transport
);
24 CFStringRef
SOSTransportCircleTestGetName(SOSTransportCircleTestRef transport
);
25 CFStringRef
SOSTransportKeyParameterTestGetName(SOSTransportKeyParameterTestRef transport
);
27 void SOSTransportKeyParameterTestSetName(SOSTransportKeyParameterTestRef transport
, CFStringRef accountName
);
28 void SOSTransportCircleTestSetName(SOSTransportCircleTestRef transport
, CFStringRef accountName
);
29 void SOSTransportMessageTestSetName(SOSTransportMessageTestRef transport
, CFStringRef accountName
);
32 CFMutableDictionaryRef
SOSTransportMessageTestGetChanges(SOSTransportMessageTestRef transport
);
33 CFMutableDictionaryRef
SOSTransportCircleTestGetChanges(SOSTransportCircleTestRef transport
);
34 CFMutableDictionaryRef
SOSTransportKeyParameterTestGetChanges(SOSTransportKeyParameterTestRef transport
);
36 SOSAccountRef
SOSTransportMessageTestGetAccount(SOSTransportMessageRef transport
);
37 SOSAccountRef
SOSTransportCircleTestGetAccount(SOSTransportCircleTestRef transport
);
38 SOSAccountRef
SOSTransportKeyParameterTestGetAccount(SOSTransportKeyParameterTestRef transport
);
40 bool SOSAccountInflateTestTransportsForCircle(SOSAccountRef account
, CFStringRef circleName
, CFStringRef accountName
, CFErrorRef
*error
);
41 bool SOSAccountEnsureFactoryCirclesTest(SOSAccountRef a
, CFStringRef accountName
);
42 void SOSTransportKeyParameterTestClearChanges(SOSTransportKeyParameterTestRef transport
);
43 void SOSTransportCircleTestClearChanges(SOSTransportCircleTestRef transport
);
44 void SOSTransportMessageTestClearChanges(SOSTransportMessageTestRef transport
);
50 SOSTransportMessageIDSTestRef
SOSTransportMessageIDSTestCreate(SOSAccountRef account
, CFStringRef accountName
, CFStringRef circleName
, CFErrorRef
*error
);
51 CFMutableDictionaryRef
SOSTransportMessageIDSTestGetChanges(SOSTransportMessageRef transport
);
52 void SOSTransportMessageIDSTestSetName(SOSTransportMessageRef transport
, CFStringRef accountName
);
53 CFStringRef
SOSTransportMessageIDSTestGetName(SOSTransportMessageRef transport
);
54 void SOSTransportMessageIDSTestClearChanges(SOSTransportMessageRef transport
);