#include "table/mock_table.h"
#include "db/dbformat.h"
+#include "env/composite_env_wrapper.h"
+#include "file/random_access_file_reader.h"
#include "port/port.h"
#include "rocksdb/table_properties.h"
#include "table/get_context.h"
#include "util/coding.h"
-#include "util/file_reader_writer.h"
-namespace rocksdb {
+namespace ROCKSDB_NAMESPACE {
namespace mock {
namespace {
InternalIterator* MockTableReader::NewIterator(
const ReadOptions&, const SliceTransform* /* prefix_extractor */,
- Arena* /*arena*/, bool /*skip_filters*/, bool /*for_compaction*/) {
+ Arena* /*arena*/, bool /*skip_filters*/, TableReaderCaller /*caller*/,
+ size_t /*compaction_readahead_size*/) {
return new MockTableIterator(table_);
}
return s;
}
- WritableFileWriter file_writer(std::move(file), fname, EnvOptions());
+ WritableFileWriter file_writer(NewLegacyWritableFileWrapper(std::move(file)),
+ fname, EnvOptions());
uint32_t id = GetAndWriteNextID(&file_writer);
file_system_.files.insert({id, std::move(file_contents)});
}
} // namespace mock
-} // namespace rocksdb
+} // namespace ROCKSDB_NAMESPACE