2016-07-15 10:23:09 +02:00
|
|
|
#include "blockstore/implementations/mock/MockBlock.h"
|
|
|
|
#include "blockstore/implementations/mock/MockBlockStore.h"
|
|
|
|
#include "../../testutils/BlockStoreTest.h"
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <cpp-utils/pointer/unique_ref_boost_optional_gtest_workaround.h>
|
|
|
|
|
|
|
|
using blockstore::BlockStore;
|
|
|
|
using blockstore::mock::MockBlockStore;
|
|
|
|
using blockstore::testfake::FakeBlockStore;
|
|
|
|
using cpputils::unique_ref;
|
|
|
|
using cpputils::make_unique_ref;
|
|
|
|
|
|
|
|
class MockBlockStoreTestFixture: public BlockStoreTestFixture {
|
|
|
|
public:
|
|
|
|
unique_ref<BlockStore> createBlockStore() override {
|
|
|
|
return make_unique_ref<MockBlockStore>(make_unique_ref<FakeBlockStore>());
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-10-13 14:16:06 +02:00
|
|
|
INSTANTIATE_TYPED_TEST_SUITE_P(Mock, BlockStoreTest, MockBlockStoreTestFixture);
|