diff options
Diffstat (limited to 'gck/gck-test.h')
-rw-r--r-- | gck/gck-test.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/gck/gck-test.h b/gck/gck-test.h deleted file mode 100644 index 186d6e5f..00000000 --- a/gck/gck-test.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * gnome-keyring - * - * Copyright (C) 2010 Stefan Walter - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - */ - -#include <glib.h> - -#include "gck/gck.h" - -#include "pkcs11/pkcs11.h" -#include "pkcs11/pkcs11i.h" - -#ifndef GCK_TEST_H -#define GCK_TEST_H - -#define gck_assert_cmprv(v1, cmp, v2) \ - do { CK_RV __v1 = (v1), __v2 = (v2); \ - if (__v1 cmp __v2) ; else \ - gck_assertion_message_cmprv (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ - #v1 " " #cmp " " #v2, __v1, #cmp, __v2); \ - } while (0) - -#define gck_assert_cmpulong(v1, cmp, v2) \ - do { CK_RV __v1 = (v1), __v2 = (v2); \ - if (__v1 cmp __v2) ; else \ - gck_assertion_message_cmpulong (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \ - #v1 " " #cmp " " #v2, __v1, #cmp, __v2); \ - } while (0) - -void gck_assertion_message_cmprv (const gchar *domain, - const gchar *file, - int line, - const gchar *func, - const gchar *expr, - CK_RV arg1, - const gchar *cmp, - CK_RV arg2); - -void gck_assertion_message_cmpulong (const gchar *domain, - const gchar *file, - gint line, - const gchar *func, - const gchar *expr, - CK_ULONG arg1, - const gchar *cmp, - CK_ULONG arg2); - -#endif /* GCK_TEST_H */ |