Create a FakeBlockStore and use it instead of InMemoryBlockStore in tests

This commit is contained in:
Sebastian Messmer 2014-12-11 01:31:21 +01:00
parent 250913ea62
commit 114284a58f

View File

@ -20,6 +20,12 @@ void DataBlockFixture::fillFileWithRandomData(long long int IV) {
val += 1442695040888963407;
reinterpret_cast<long long int*>(_fileData)[i] = val;
}
//Fill remaining bytes
for(size_t i=(_size/sizeof(long long int))*sizeof(long long int); i<_size; ++i) {
val *= 6364136223846793005L;
val += 1442695040888963407;
reinterpret_cast<char*>(_fileData)[i] = val;
}
}
const char *DataBlockFixture::data() const {