diff options
author | Patrick Venture <venture@google.com> | 2019-01-15 19:57:38 -0800 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-01-15 20:06:31 -0800 |
commit | cd8dab491d3f78124be800252186a32a90c884b8 (patch) | |
tree | 43556d70c8144dcb42b33655a65297f02295d257 /test/blob_mock.hpp | |
parent | d1c3e86f2368ec69098a4e786a5c4e9d2455ae1d (diff) | |
download | phosphor-ipmi-blobs-cd8dab491d3f78124be800252186a32a90c884b8.tar.gz phosphor-ipmi-blobs-cd8dab491d3f78124be800252186a32a90c884b8.zip |
stop installing manager header
Stop installing the manager header as it is no longer meant to be
exported, but rather used only internally within this repository.
Change-Id: I2ab21a31fd745e1b3e36fc39ffea5e26d373ff51
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'test/blob_mock.hpp')
-rw-r--r-- | test/blob_mock.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/blob_mock.hpp b/test/blob_mock.hpp new file mode 100644 index 0000000..b70d3d1 --- /dev/null +++ b/test/blob_mock.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include <blobs-ipmid/blobs.hpp> + +#include <gmock/gmock.h> + +namespace blobs +{ + +class BlobMock : public GenericBlobInterface +{ + public: + virtual ~BlobMock() = default; + + MOCK_METHOD1(canHandleBlob, bool(const std::string&)); + MOCK_METHOD0(getBlobIds, std::vector<std::string>()); + MOCK_METHOD1(deleteBlob, bool(const std::string&)); + MOCK_METHOD2(stat, bool(const std::string&, struct BlobMeta*)); + MOCK_METHOD3(open, bool(uint16_t, uint16_t, const std::string&)); + MOCK_METHOD3(read, std::vector<uint8_t>(uint16_t, uint32_t, uint32_t)); + MOCK_METHOD3(write, bool(uint16_t, uint32_t, const std::vector<uint8_t>&)); + MOCK_METHOD3(writeMeta, + bool(uint16_t, uint32_t, const std::vector<uint8_t>&)); + MOCK_METHOD2(commit, bool(uint16_t, const std::vector<uint8_t>&)); + MOCK_METHOD1(close, bool(uint16_t)); + MOCK_METHOD2(stat, bool(uint16_t, struct BlobMeta*)); + MOCK_METHOD1(expire, bool(uint16_t)); +}; +} // namespace blobs |