encfs/fs/testing.h
2013-01-29 03:07:54 +00:00

24 lines
542 B
C++

#ifndef _TESTING_incl_
#define _TESTING_incl_
#include <string>
#include "cipher/Cipher.h"
#include "fs/FileUtils.h"
#include "fs/FSConfig.h"
class FileIO;
FSConfigPtr makeConfig(const shared_ptr<Cipher>& cipher, int blockSize);
void runWithCipher(const std::string& cipherName, int blockSize,
void (*func)(FSConfigPtr& config));
void runWithAllCiphers(void (*func)(FSConfigPtr& config));
void comparisonTest(FSConfigPtr& cfg, FileIO* a, FileIO* b);
void compare(FileIO* a, FileIO* b, int offset, int len);
#endif