X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/Security/utilities/src/debugging_test.h diff --git a/Security/utilities/src/debugging_test.h b/Security/utilities/src/debugging_test.h new file mode 100644 index 00000000..444c667b --- /dev/null +++ b/Security/utilities/src/debugging_test.h @@ -0,0 +1,32 @@ +// +// debugging_test.h +// Copyright (c) 2014 Apple Inc. All Rights Reserved. +// + +// +// Interfaces exported for tests for debugging code. +// + +#ifndef _SECURITY_UTILITIES_DEBUGGING_TEST_H_ +#define _SECURITY_UTILITIES_DEBUGGING_TEST_H_ + +#include +#include "utilities/debugging.h" + +__BEGIN_DECLS + +// +// These would all be static inside +// debugging.c, but unit tests can use them +// + +void __security_debug_init(void); + +bool IsScopeActive(int level, CFStringRef scope); +bool IsScopeActiveC(int level, const char *scope); + +void ApplyScopeListForIDC(const char *scopeList, SecDebugScopeID whichID); + +__END_DECLS + +#endif