]> git.saurik.com Git - apple/security.git/blob - OSX/sec/securityd/Regressions/SOSTransportTestTransports.h
Security-57337.50.23.tar.gz
[apple/security.git] / OSX / sec / securityd / Regressions / SOSTransportTestTransports.h
1 #ifndef SEC_SOSTransportTestTransports_h
2 #define SEC_SOSTransportTestTransports_h
3
4 typedef struct SOSTransportKeyParameterTest *SOSTransportKeyParameterTestRef;
5 typedef struct SOSTransportCircleTest *SOSTransportCircleTestRef;
6 typedef struct SOSTransportMessageTest *SOSTransportMessageTestRef;
7 typedef struct SOSTransportMessageIDSTest *SOSTransportMessageIDSTestRef;
8
9 CF_RETURNS_RETAINED
10 CFDictionaryRef SOSTransportMessageTestHandleMessages(SOSTransportMessageTestRef transport, CFMutableDictionaryRef circle_peer_messages_table, CFErrorRef *error);
11
12 void SOSAccountUpdateTestTransports(SOSAccountRef account, CFDictionaryRef gestalt);
13
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);
18
19 CFMutableArrayRef key_transports;
20 CFMutableArrayRef circle_transports;
21 CFMutableArrayRef message_transports;
22
23 CFStringRef SOSTransportMessageTestGetName(SOSTransportMessageTestRef transport);
24 CFStringRef SOSTransportCircleTestGetName(SOSTransportCircleTestRef transport);
25 CFStringRef SOSTransportKeyParameterTestGetName(SOSTransportKeyParameterTestRef transport);
26
27 void SOSTransportKeyParameterTestSetName(SOSTransportKeyParameterTestRef transport, CFStringRef accountName);
28 void SOSTransportCircleTestSetName(SOSTransportCircleTestRef transport, CFStringRef accountName);
29 void SOSTransportMessageTestSetName(SOSTransportMessageTestRef transport, CFStringRef accountName);
30
31
32 CFMutableDictionaryRef SOSTransportMessageTestGetChanges(SOSTransportMessageTestRef transport);
33 CFMutableDictionaryRef SOSTransportCircleTestGetChanges(SOSTransportCircleTestRef transport);
34 CFMutableDictionaryRef SOSTransportKeyParameterTestGetChanges(SOSTransportKeyParameterTestRef transport);
35
36 SOSAccountRef SOSTransportMessageTestGetAccount(SOSTransportMessageTestRef transport);
37 SOSAccountRef SOSTransportCircleTestGetAccount(SOSTransportCircleTestRef transport);
38 SOSAccountRef SOSTransportKeyParameterTestGetAccount(SOSTransportKeyParameterTestRef transport);
39
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);
45
46
47
48
49 //Test IDS transport
50 SOSTransportMessageIDSTestRef SOSTransportMessageIDSTestCreate(SOSAccountRef account, CFStringRef circleName, CFErrorRef *error);
51 CFMutableDictionaryRef SOSTransportMessageIDSTestGetChanges(SOSTransportMessageTestRef transport);
52 void SOSTransportMessageIDSTestSetName(SOSTransportMessageTestRef transport, CFStringRef accountName);
53 CFStringRef SOSTransportMessageIDSTestGetName(SOSTransportMessageTestRef transport);
54
55
56 #endif