#include #include #include #include "../src/CryDevice.h" using cpputils::unique_ref; using cpputils::make_unique_ref; using fspp::Device; using blockstore::testfake::FakeBlockStore; using namespace cryfs; class CryFsTestFixture: public FileSystemTestFixture { public: CryFsTestFixture() // Don't create config tempfile yet : configFile(false) {} unique_ref createDevice() override { auto blockStore = cpputils::make_unique_ref(); auto config = CryConfigLoader::loadOrCreateWithWeakKey(configFile.path()); return make_unique_ref(std::move(config), std::move(blockStore)); } cpputils::TempFile configFile; }; FSPP_ADD_FILESYTEM_TESTS(CryFS, CryFsTestFixture);