]> git.saurik.com Git - apple/security.git/blobdiff - Security/utilities/src/debugging_test.h
Security-57031.1.35.tar.gz
[apple/security.git] / 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 (file)
index 0000000..444c667
--- /dev/null
@@ -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 <CoreFoundation/CoreFoundation.h>
+#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