2015-02-17 00:23:33 +01:00
|
|
|
#include <messmer/blockstore/implementations/testfake/FakeBlock.h>
|
|
|
|
#include <messmer/blockstore/implementations/testfake/FakeBlockStore.h>
|
|
|
|
#include <messmer/blockstore/test/testutils/BlockStoreTest.h>
|
|
|
|
#include <messmer/blockstore/test/testutils/BlockStoreWithRandomKeysTest.h>
|
|
|
|
#include "google/gtest/gtest.h"
|
2014-12-11 01:31:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
using blockstore::BlockStore;
|
|
|
|
using blockstore::BlockStoreWithRandomKeys;
|
|
|
|
using blockstore::testfake::FakeBlockStore;
|
|
|
|
|
|
|
|
using std::unique_ptr;
|
|
|
|
using std::make_unique;
|
|
|
|
|
|
|
|
class FakeBlockStoreTestFixture: public BlockStoreTestFixture {
|
|
|
|
public:
|
|
|
|
unique_ptr<BlockStore> createBlockStore() override {
|
|
|
|
return make_unique<FakeBlockStore>();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
INSTANTIATE_TYPED_TEST_CASE_P(TestFake, BlockStoreTest, FakeBlockStoreTestFixture);
|
|
|
|
|
|
|
|
class FakeBlockStoreWithRandomKeysTestFixture: public BlockStoreWithRandomKeysTestFixture {
|
|
|
|
public:
|
|
|
|
unique_ptr<BlockStoreWithRandomKeys> createBlockStore() override {
|
|
|
|
return make_unique<FakeBlockStore>();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
INSTANTIATE_TYPED_TEST_CASE_P(TestFake, BlockStoreWithRandomKeysTest, FakeBlockStoreWithRandomKeysTestFixture);
|