2013-01-29 04:07:54 +01:00
|
|
|
#ifndef _TESTING_incl_
|
|
|
|
#define _TESTING_incl_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2013-03-05 07:36:32 +01:00
|
|
|
#include "cipher/CipherV1.h"
|
2013-01-29 04:07:54 +01:00
|
|
|
#include "fs/FileUtils.h"
|
|
|
|
#include "fs/FSConfig.h"
|
|
|
|
|
2013-03-05 07:29:58 +01:00
|
|
|
namespace encfs {
|
|
|
|
|
2013-01-29 04:07:54 +01:00
|
|
|
class FileIO;
|
|
|
|
|
2013-03-05 07:36:32 +01:00
|
|
|
FSConfigPtr makeConfig(const shared_ptr<CipherV1>& cipher, int blockSize);
|
2013-01-29 04:07:54 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2013-03-05 07:29:58 +01:00
|
|
|
} // namespace encfs
|
|
|
|
|
2013-01-29 04:07:54 +01:00
|
|
|
#endif
|
|
|
|
|