2018-10-21 19:31:08 -07:00
|
|
|
#pragma once
|
|
|
|
#ifndef CRYFS_MOCKCRYKEYPROVIDER_H
|
|
|
|
#define CRYFS_MOCKCRYKEYPROVIDER_H
|
|
|
|
|
2019-01-25 23:38:34 -08:00
|
|
|
#include <cryfs/impl/config/CryKeyProvider.h>
|
2018-10-21 19:31:08 -07:00
|
|
|
#include <gmock/gmock.h>
|
|
|
|
|
|
|
|
class MockCryKeyProvider: public cryfs::CryKeyProvider {
|
|
|
|
public:
|
|
|
|
MOCK_METHOD2(requestKeyForExistingFilesystem, cpputils::EncryptionKey(size_t keySize, const cpputils::Data& kdfParameters));
|
|
|
|
MOCK_METHOD1(requestKeyForNewFilesystem, cryfs::CryKeyProvider::KeyResult(size_t keySize));
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|