encfs/fs/testing.h
Valient Gough 7799c88df6 move code into encfs namespace, split protobufs
git-svn-id: http://encfs.googlecode.com/svn/trunk@93 db9cf616-1c43-0410-9cb8-a902689de0d6
2013-03-05 06:29:58 +00:00

28 lines
584 B
C++

#ifndef _TESTING_incl_
#define _TESTING_incl_
#include <string>
#include "cipher/Cipher.h"
#include "fs/FileUtils.h"
#include "fs/FSConfig.h"
namespace encfs {
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);
} // namespace encfs
#endif