mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 17:33:19 +01:00
7e95ff90c8
git-svn-id: http://encfs.googlecode.com/svn/trunk@95 db9cf616-1c43-0410-9cb8-a902689de0d6
28 lines
588 B
C++
28 lines
588 B
C++
#ifndef _TESTING_incl_
|
|
#define _TESTING_incl_
|
|
|
|
#include <string>
|
|
|
|
#include "cipher/CipherV1.h"
|
|
#include "fs/FileUtils.h"
|
|
#include "fs/FSConfig.h"
|
|
|
|
namespace encfs {
|
|
|
|
class FileIO;
|
|
|
|
FSConfigPtr makeConfig(const shared_ptr<CipherV1>& 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);
|
|
|
|
} // namespace encfs
|
|
|
|
#endif
|
|
|