2018-10-22 04:31:08 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef CRYFS_MOCKCRYKEYPROVIDER_H
|
|
|
|
#define CRYFS_MOCKCRYKEYPROVIDER_H
|
|
|
|
|
2019-01-26 08:38:34 +01:00
|
|
|
#include <cryfs/impl/config/CryKeyProvider.h>
|
2018-10-22 04:31:08 +02:00
|
|
|
#include <gmock/gmock.h>
|
|
|
|
|
|
|
|
class MockCryKeyProvider: public cryfs::CryKeyProvider {
|
|
|
|
public:
|
2019-10-13 17:49:57 +02: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-22 04:31:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|