#ifndef TESTBLOBINDEX_H
#define TESTBLOBINDEX_H

#include "persifs.h"
#include "testutils.h"
#include "blobindex.h"
#include "memblobindex.h"
#include "diskblobindex.h"

void testsDone();
void testBlobIndex(callback<void>::ref cb, int count, ref<blobIndex> ind);
void testBlobIndex_after_put(callback<void>::ref cb,
                             ref<blobIndex> ind, int count,
                             blockFingerprint fp, blockAddress addr);
void testBlobIndex_after_get(callback<void>::ref cb,
                             ref<blobIndex> ind, int count,
                             blockFingerprint fp, blockAddress addr,
                             blockAddress retAddr);
void testMemBlobIndex(callback<void>::ref cb, int count,
                      ref<memBlobIndex> ind);
void testDiskBlobIndex(callback<void>::ref cb, int count,
                       ref<diskBlobIndex> ind);

int main(int argc, const char **argv);

#endif // TESTBLOBINDEX_H
