aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_plugin_block_fs.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-28 21:12:03 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-28 21:12:03 +0000
commit3a2737d76679c68331fad0be0b89d8efdcde5079 (patch)
tree5bd4ef163438954cdcb75558e6368a297629b56d /src/fs/test_plugin_block_fs.c
parent9c46ed792caae948fd99cca44deaf5a265af7614 (diff)
downloadgnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.tar.gz
gnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.zip
-extend block API to allow specifying flags, use this to allow reducing checks for replies from local DB
Diffstat (limited to 'src/fs/test_plugin_block_fs.c')
-rw-r--r--src/fs/test_plugin_block_fs.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/fs/test_plugin_block_fs.c b/src/fs/test_plugin_block_fs.c
index 208f4ce78..9e1246f72 100644
--- a/src/fs/test_plugin_block_fs.c
+++ b/src/fs/test_plugin_block_fs.c
@@ -38,17 +38,32 @@ test_fs (struct GNUNET_BLOCK_Context *ctx)
38 sizeof (block), &key)) 38 sizeof (block), &key))
39 return 1; 39 return 1;
40 if (GNUNET_BLOCK_EVALUATION_OK_LAST != 40 if (GNUNET_BLOCK_EVALUATION_OK_LAST !=
41 GNUNET_BLOCK_evaluate (ctx, GNUNET_BLOCK_TYPE_FS_DBLOCK, &key, NULL, 0, 41 GNUNET_BLOCK_evaluate (ctx,
42 NULL, 0, block, sizeof (block))) 42 GNUNET_BLOCK_TYPE_FS_DBLOCK,
43 GNUNET_BLOCK_EO_NONE,
44 &key,
45 NULL, 0,
46 NULL, 0,
47 block, sizeof (block)))
43 return 2; 48 return 2;
44 if (GNUNET_BLOCK_EVALUATION_REQUEST_VALID != 49 if (GNUNET_BLOCK_EVALUATION_REQUEST_VALID !=
45 GNUNET_BLOCK_evaluate (ctx, GNUNET_BLOCK_TYPE_FS_DBLOCK, &key, NULL, 0, 50 GNUNET_BLOCK_evaluate (ctx,
46 NULL, 0, NULL, 0)) 51 GNUNET_BLOCK_TYPE_FS_DBLOCK,
52 GNUNET_BLOCK_EO_NONE,
53 &key,
54 NULL, 0,
55 NULL, 0,
56 NULL, 0))
47 return 4; 57 return 4;
48 GNUNET_log_skip (1, GNUNET_NO); 58 GNUNET_log_skip (1, GNUNET_NO);
49 if (GNUNET_BLOCK_EVALUATION_REQUEST_INVALID != 59 if (GNUNET_BLOCK_EVALUATION_REQUEST_INVALID !=
50 GNUNET_BLOCK_evaluate (ctx, GNUNET_BLOCK_TYPE_FS_DBLOCK, &key, NULL, 0, 60 GNUNET_BLOCK_evaluate (ctx,
51 "bogus", 5, NULL, 0)) 61 GNUNET_BLOCK_TYPE_FS_DBLOCK,
62 GNUNET_BLOCK_EO_NONE,
63 &key,
64 NULL, 0,
65 "bogus", 5,
66 NULL, 0))
52 return 8; 67 return 8;
53 GNUNET_log_skip (0, GNUNET_YES); 68 GNUNET_log_skip (0, GNUNET_YES);
54 return 0; 69 return 0;