libcryfs/test/cryfs/impl/testutils/MockCryKeyProvider.h

15 lines
453 B
C
Raw Normal View History

#pragma once
#ifndef CRYFS_MOCKCRYKEYPROVIDER_H
#define CRYFS_MOCKCRYKEYPROVIDER_H
2019-01-25 23:38:34 -08:00
#include <cryfs/impl/config/CryKeyProvider.h>
#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