#include #include "blockstore/implementations/caching2/CachingBlockStore2.h" #include "blockstore/implementations/inmemory/InMemoryBlockStore2.h" #include "../../testutils/BlockStoreTest.h" #include "../../testutils/BlockStore2Test.h" #include using ::testing::Test; using blockstore::BlockStore; using blockstore::BlockStore2; using blockstore::caching::CachingBlockStore2; using blockstore::lowtohighlevel::LowToHighLevelBlockStore; using blockstore::inmemory::InMemoryBlockStore2; using cpputils::Data; using cpputils::DataFixture; using cpputils::make_unique_ref; using cpputils::unique_ref; class CachingBlockStoreTestFixture: public BlockStoreTestFixture { public: unique_ref createBlockStore() override { return make_unique_ref( make_unique_ref(make_unique_ref()) ); } }; INSTANTIATE_TYPED_TEST_CASE_P(Caching2, BlockStoreTest, CachingBlockStoreTestFixture); class CachingBlockStore2TestFixture: public BlockStore2TestFixture { public: unique_ref createBlockStore() override { return make_unique_ref(make_unique_ref()); } }; INSTANTIATE_TYPED_TEST_CASE_P(Caching, BlockStore2Test, CachingBlockStore2TestFixture);