#include "../../../implementations/encrypted/EncryptedBlockStore.h" #include "../../../implementations/testfake/FakeBlockStore.h" #include "../../testutils/BlockStoreTest.h" #include "google/gtest/gtest.h" using blockstore::BlockStore; using blockstore::encrypted::EncryptedBlockStore; using blockstore::encrypted::EncryptionKey; using blockstore::testfake::FakeBlockStore; using std::unique_ptr; using std::make_unique; class EncryptedBlockStoreTestFixture: public BlockStoreTestFixture { public: unique_ptr createBlockStore() override { return make_unique(make_unique(), EncryptionKey::FromString("1491BB4932A389EE14BC7090A272EE5517627CFA147A971A8E6E747E0C772972")); } }; INSTANTIATE_TYPED_TEST_CASE_P(Encrypted, BlockStoreTest, EncryptedBlockStoreTestFixture); //TODO Add specific tests, for example loading it with a different key doesn't work