5 #ifndef STORAGE_LEVELDB_UTIL_TESTUTIL_H_ 6 #define STORAGE_LEVELDB_UTIL_TESTUTIL_H_ 17 extern Slice
RandomString(Random* rnd,
int len, std::string* dst);
21 extern std::string
RandomKey(Random* rnd,
int len);
27 size_t len, std::string* dst);
63 #endif // STORAGE_LEVELDB_UTIL_TESTUTIL_H_ Definition: autocompact_test.cc:11
virtual Status NewWritableFile(const std::string &fname, WritableFile **result)
Definition: testutil.h:39
Definition: testutil.h:30
bool writable_file_error_
Definition: testutil.h:32
virtual Status NewWritableFile(const std::string &fname, WritableFile **result)=0
Slice CompressibleString(Random *rnd, double compressed_fraction, size_t len, std::string *dst)
Definition: testutil.cc:34
virtual Status NewAppendableFile(const std::string &fname, WritableFile **result)
Definition: env.cc:12
virtual Status NewAppendableFile(const std::string &fname, WritableFile **result)
Definition: testutil.h:49
int num_writable_file_errors_
Definition: testutil.h:33
std::string RandomKey(Random *rnd, int len)
Definition: testutil.cc:20
Slice RandomString(Random *rnd, int len, std::string *dst)
Definition: testutil.cc:12
static Env * Default()
Definition: env_posix.cc:699
static Status IOError(const Slice &msg, const Slice &msg2=Slice())
Definition: status.h:47
ErrorEnv()
Definition: testutil.h:35
Env * target() const
Definition: env.h:304