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:
|
2019-10-13 23:49:57 +08:00
|
|
|
MOCK_METHOD(cpputils::EncryptionKey, requestKeyForExistingFilesystem, (size_t keySize, const cpputils::Data& kdfParameters), (override));
|
|
|
|
MOCK_METHOD(cryfs::CryKeyProvider::KeyResult, requestKeyForNewFilesystem, (size_t keySize), (override));
|
2018-10-21 19:31:08 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|