X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5dd5f9ec28f304ca377c42fd7f711d6cf12b90e1..5c19dc3ae3bd8e40a9c028b0deddd50ff337692c:/OSX/utilities/src/debugging_test.h diff --git a/OSX/utilities/src/debugging_test.h b/OSX/utilities/src/debugging_test.h new file mode 100644 index 00000000..444c667b --- /dev/null +++ b/OSX/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