[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22128 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22128 - gnunet/src/gns |
Date: |
Wed, 20 Jun 2012 00:26:00 +0200 |
Author: grothoff
Date: 2012-06-20 00:26:00 +0200 (Wed, 20 Jun 2012)
New Revision: 22128
Modified:
gnunet/src/gns/test_gns_cname_lookup.c
gnunet/src/gns/test_gns_dht_threepeer.c
gnunet/src/gns/test_gns_max_queries.c
gnunet/src/gns/test_gns_ns_lookup.c
gnunet/src/gns/test_gns_pseu_shorten.c
gnunet/src/gns/test_gns_revocation.c
Log:
-fixing testcases with new expiration code
Modified: gnunet/src/gns/test_gns_cname_lookup.c
===================================================================
--- gnunet/src/gns/test_gns_cname_lookup.c 2012-06-19 22:24:51 UTC (rev
22127)
+++ gnunet/src/gns/test_gns_cname_lookup.c 2012-06-19 22:26:00 UTC (rev
22128)
@@ -264,7 +264,7 @@
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
rd.data_size = sizeof(struct in_addr);
rd.data = web;
Modified: gnunet/src/gns/test_gns_dht_threepeer.c
===================================================================
--- gnunet/src/gns/test_gns_dht_threepeer.c 2012-06-19 22:24:51 UTC (rev
22127)
+++ gnunet/src/gns/test_gns_dht_threepeer.c 2012-06-19 22:26:00 UTC (rev
22128)
@@ -300,7 +300,7 @@
struct GNUNET_NAMESTORE_RecordData rd;
rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE;
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
if (NULL == dave_daemon)
{
Modified: gnunet/src/gns/test_gns_max_queries.c
===================================================================
--- gnunet/src/gns/test_gns_max_queries.c 2012-06-19 22:24:51 UTC (rev
22127)
+++ gnunet/src/gns/test_gns_max_queries.c 2012-06-19 22:26:00 UTC (rev
22128)
@@ -273,7 +273,7 @@
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
rd.data_size = sizeof(struct in_addr);
rd.data = web;
Modified: gnunet/src/gns/test_gns_ns_lookup.c
===================================================================
--- gnunet/src/gns/test_gns_ns_lookup.c 2012-06-19 22:24:51 UTC (rev 22127)
+++ gnunet/src/gns/test_gns_ns_lookup.c 2012-06-19 22:26:00 UTC (rev 22128)
@@ -318,7 +318,7 @@
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP_NS;
struct in_addr *ns = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
GNUNET_assert(1 == inet_pton (AF_INET, ip, ns));
rd.data_size = sizeof(struct in_addr);
rd.data = ns;
Modified: gnunet/src/gns/test_gns_pseu_shorten.c
===================================================================
--- gnunet/src/gns/test_gns_pseu_shorten.c 2012-06-19 22:24:51 UTC (rev
22127)
+++ gnunet/src/gns/test_gns_pseu_shorten.c 2012-06-19 22:26:00 UTC (rev
22128)
@@ -289,7 +289,7 @@
struct GNUNET_CRYPTO_RsaSignature *sig;
struct GNUNET_NAMESTORE_RecordData rd;
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
rd.data_size = strlen(TEST_PSEU_ALICE)+1;
rd.data = TEST_PSEU_ALICE;
rd.record_type = GNUNET_GNS_RECORD_PSEU;
@@ -344,7 +344,7 @@
GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
rd_payload_length,
(char*)nrb,
- rd.expiration,
+ GNUNET_TIME_UNIT_FOREVER_ABS,
DHT_OPERATION_TIMEOUT,
&commence_testing,
NULL);
@@ -369,7 +369,7 @@
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
rd.data_size = sizeof(struct in_addr);
rd.data = web;
@@ -423,7 +423,7 @@
GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
rd_payload_length,
(char*)nrb,
- rd.expiration,
+ GNUNET_TIME_UNIT_FOREVER_ABS,
DHT_OPERATION_TIMEOUT,
&put_pseu_dht,
NULL);
@@ -447,7 +447,7 @@
struct GNUNET_CRYPTO_RsaSignature *sig;
struct GNUNET_NAMESTORE_RecordData rd;
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &alice_hash;
rd.record_type = GNUNET_GNS_RECORD_PKEY;
@@ -503,7 +503,7 @@
GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
rd_payload_length,
(char*)nrb,
- rd.expiration,
+ GNUNET_TIME_UNIT_FOREVER_ABS,
DHT_OPERATION_TIMEOUT,
&put_www_dht,
NULL);
@@ -515,7 +515,7 @@
fin_init_zone (void *cls, int32_t success, const char *emsg)
{
struct GNUNET_NAMESTORE_RecordData rd;
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &bob_hash;
rd.record_type = GNUNET_GNS_RECORD_PKEY;
@@ -534,7 +534,7 @@
{
struct GNUNET_NAMESTORE_RecordData rd;
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &short_zone;
rd.record_type = GNUNET_GNS_RECORD_PKEY;
@@ -629,7 +629,7 @@
GNUNET_CRYPTO_short_hash(&short_pkey, sizeof(short_pkey), &short_zone);
struct GNUNET_NAMESTORE_RecordData rd;
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &priv_zone;
rd.record_type = GNUNET_GNS_RECORD_PKEY;
Modified: gnunet/src/gns/test_gns_revocation.c
===================================================================
--- gnunet/src/gns/test_gns_revocation.c 2012-06-19 22:24:51 UTC (rev
22127)
+++ gnunet/src/gns/test_gns_revocation.c 2012-06-19 22:26:00 UTC (rev
22128)
@@ -226,7 +226,7 @@
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+ rd.expiration_time = UINT64_MAX;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
@@ -253,7 +253,7 @@
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
TEST_RECORD_NAME,
- rd.expiration,
+ GNUNET_TIME_UNIT_FOREVER_ABS,
1,
&rd,
sig,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22128 - gnunet/src/gns,
gnunet <=