5 #ifndef _TESTSECEVENT_H_
6 #define _TESTSECEVENT_H_ 1
7 #include <Security/SecKeychain.h>
13 #define is_sec_event(EVENT, KEYCHAIN, ITEM, PID, TESTNAME) \
15 test_is_sec_event((EVENT), (KEYCHAIN), (ITEM), (PID), (TESTNAME), \
16 test_directive, test_reason, __FILE__, __LINE__) \
19 #define no_sec_event(TESTNAME) \
21 test_is_sec_event(0, NULL, NULL, NULL, (TESTNAME), \
22 test_directive, test_reason, __FILE__, __LINE__) \
25 OSStatus
test_sec_event_register(SecKeychainEventMask mask
);
27 OSStatus
test_sec_event_deregister();
29 int test_is_sec_event(SecKeychainEvent event
, SecKeychainRef
*keychain
,
30 SecKeychainItemRef
*item
, pid_t
*pid
, const char *description
,
31 const char *directive
, const char *reason
, const char *file
,
36 #endif /* __cplusplus */
38 #endif /* !_TESTSECEVENT_H_ */