]> git.saurik.com Git - apple/security.git/blobdiff - SecurityTests/testKeychainAPI/testKeychainAPI/testKeychainAPI.h
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / testKeychainAPI / testKeychainAPI / testKeychainAPI.h
diff --git a/SecurityTests/testKeychainAPI/testKeychainAPI/testKeychainAPI.h b/SecurityTests/testKeychainAPI/testKeychainAPI/testKeychainAPI.h
new file mode 100644 (file)
index 0000000..2cd3d9b
--- /dev/null
@@ -0,0 +1,68 @@
+// ======================================================================
+//     File:           testKeychainAPI.h
+//
+//
+//     Copyright:      Copyright (c) 2000,2003 Apple Computer, Inc. All Rights Reserved.
+//
+//     Change History (most recent first):
+//
+//              <1>    4/18/00 em              Created.
+// ======================================================================
+
+#ifndef __TESTKEYCHAINAPI__
+#define __TESTKEYCHAINAPI__
+
+#include <stdio.h>
+#include <Carbon/Carbon.h>
+#undef check
+
+class CTestApp{
+public:
+                                               CTestApp(
+                                                       int             inArgc,
+                                                       char ** inArgv);
+                                               
+       virtual void            Run();
+                                       
+       virtual void            DoRunScript(
+                                                       const char              *inPath, 
+                                                       UInt32                  &outPass, 
+                                                       UInt32                  &outFail);
+                                               
+       virtual void            DoRunScript(
+                                                       FILE                    *inFile, 
+                                                       UInt32                  &outPass, 
+                                                       UInt32                  &outFail);
+                                               
+       virtual void            DoRunTestScript(
+                                                       const char              *inScriptNo);
+                                               
+       virtual void            DoRunSubTestScript(
+                                                        const char *           inScriptNo);
+                                                       
+       virtual void            DoDumpScript(
+                                                       const char              *inOperationNo);
+                                                       
+       virtual void            DoRadar(
+                                                       const char              *inBugNo);
+       
+       virtual void            Cleanup();
+
+       bool                            IsVerbose(){ return mVerbose; }
+       bool                            IsRelaxErrorChecking(){ return mRelaxErrorChecking; }
+protected:
+       int                             mArgc;
+       char **                         mArgv;
+       bool                            mVerbose;
+       bool                            mRelaxErrorChecking;
+
+};
+
+#if TARGET_RT_MAC_MACHO
+       #define UNIX_fgets(a, b, c)     fgets(a, b, c)
+#else
+       #define UNIX_fgets(a, b, c)     UNIXfgets(a, b, c)
+       char*   UNIX_fgets(char *inBuffer, int inSize, FILE *inFile);
+#endif
+               
+#endif