From: Marcus Brinkmann Date: Tue, 27 May 2003 03:06:37 +0000 (+0000) Subject: 2003-05-27 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~613 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a766b784bad763ca03c78c1ed406fd816bc119a5;p=gpgme.git 2003-05-27 Marcus Brinkmann * t-data.c: Remove TEST_OUT_CB. (main): Likewise. * gpg/t-trustlist.c (main): Access ITEM directly. --- diff --git a/trunk/tests/ChangeLog b/trunk/tests/ChangeLog index 9848d36..f31112a 100644 --- a/trunk/tests/ChangeLog +++ b/trunk/tests/ChangeLog @@ -1,5 +1,9 @@ 2003-05-27 Marcus Brinkmann + * t-data.c: Remove TEST_OUT_CB. + (main): Likewise. + * gpg/t-trustlist.c (main): Access ITEM directly. + * (t-decrypt-verify.c, t-decrypt.c, t-edit.c, t-encrypt-sign.c, t-encrypt-sym.c, t-sign.c, t-signers.c): Include . (passphrase_cb): Rewritten. diff --git a/trunk/tests/gpg/t-trustlist.c b/trunk/tests/gpg/t-trustlist.c index cc4bbf3..d7c6bc8 100644 --- a/trunk/tests/gpg/t-trustlist.c +++ b/trunk/tests/gpg/t-trustlist.c @@ -54,13 +54,9 @@ main (int argc, char *argv[]) while (!(err = gpgme_op_trustlist_next (ctx, &item))) { printf ("l=%d k=%s t=%d o=%s v=%s u=%s\n", - gpgme_trust_item_get_int_attr (item, GPGME_ATTR_LEVEL, NULL, 0), - gpgme_trust_item_get_string_attr (item, GPGME_ATTR_KEYID, NULL, 0), - gpgme_trust_item_get_int_attr (item, GPGME_ATTR_TYPE, NULL, 0), - gpgme_trust_item_get_string_attr (item, GPGME_ATTR_OTRUST, NULL, 0), - gpgme_trust_item_get_string_attr (item, GPGME_ATTR_VALIDITY, NULL, 0), - gpgme_trust_item_get_string_attr (item, GPGME_ATTR_USERID, NULL, 0)); - gpgme_trust_item_release (item); + item->level, item->keyid, item->type, item->owner_trust, + item->validity, item->name); + gpgme_trust_item_unref (item); } if (err != GPGME_EOF) fail_if_err (err); diff --git a/trunk/tests/t-data.c b/trunk/tests/t-data.c index d235596..46c553d 100644 --- a/trunk/tests/t-data.c +++ b/trunk/tests/t-data.c @@ -67,7 +67,6 @@ typedef enum TEST_INOUT_MEM_FROM_FILE_PART_BY_NAME, TEST_INOUT_MEM_FROM_INEXISTANT_FILE_PART, TEST_INOUT_MEM_FROM_FILE_PART_BY_FP, - TEST_OUT_CB, TEST_END } round_t; @@ -262,9 +261,6 @@ main (int argc, char **argv) strlen (text), strlen (text)); } break; - case TEST_OUT_CB: - err = gpgme_data_new_with_read_cb (&data, read_cb, &round); - break; case TEST_END: return 0; case TEST_INITIALIZER: @@ -275,8 +271,7 @@ main (int argc, char **argv) fail_if_err (err); read_test (round, data); - if (round != TEST_OUT_CB) - write_test (round, data); + write_test (round, data); gpgme_data_release (data); } return 0;