]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/librbd/mock/crypto/MockEncryptionFormat.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / test / librbd / mock / crypto / MockEncryptionFormat.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_TEST_LIBRBD_MOCK_CRYPTO_MOCK_ENCRYPTION_FORMAT_H
5 #define CEPH_TEST_LIBRBD_MOCK_CRYPTO_MOCK_ENCRYPTION_FORMAT_H
6
7 #include "gmock/gmock.h"
8 #include "librbd/crypto/EncryptionFormat.h"
9 #include "test/librbd/mock/MockImageCtx.h"
10 #include "test/librbd/mock/crypto/MockCryptoInterface.h"
11
12 namespace librbd {
13 namespace crypto {
14
15 struct MockEncryptionFormat {
16 MOCK_CONST_METHOD0(clone, std::unique_ptr<MockEncryptionFormat>());
17 MOCK_METHOD2(format, void(MockImageCtx*, Context*));
18 MOCK_METHOD3(load, void(MockImageCtx*, std::string*, Context*));
19 MOCK_METHOD2(flatten, void(MockImageCtx*, Context*));
20 MOCK_METHOD0(get_crypto, MockCryptoInterface*());
21 };
22
23 } // namespace crypto
24 } // namespace librbd
25
26 #endif // CEPH_TEST_LIBRBD_MOCK_CRYPTO_MOCK_ENCRYPTION_FORMAT_H