#include "blockstore/implementations/inmemory/InMemoryBlock.h" #include "blockstore/implementations/inmemory/InMemoryBlockStore.h" #include "../../testutils/BlockStoreTest.h" #include "../../testutils/BlockStoreWithRandomKeysTest.h" #include #include using blockstore::BlockStore; using blockstore::BlockStoreWithRandomKeys; using blockstore::inmemory::InMemoryBlockStore; using cpputils::unique_ref; using cpputils::make_unique_ref; class InMemoryBlockStoreTestFixture: public BlockStoreTestFixture { public: unique_ref createBlockStore() override { return make_unique_ref(); } }; INSTANTIATE_TYPED_TEST_CASE_P(InMemory, BlockStoreTest, InMemoryBlockStoreTestFixture); class InMemoryBlockStoreWithRandomKeysTestFixture: public BlockStoreWithRandomKeysTestFixture { public: unique_ref createBlockStore() override { return make_unique_ref(); } }; INSTANTIATE_TYPED_TEST_CASE_P(InMemory, BlockStoreWithRandomKeysTest, InMemoryBlockStoreWithRandomKeysTestFixture);