diff options
Diffstat (limited to 'src/test/rbd_mirror/mock/MockBaseRequest.h')
-rw-r--r-- | src/test/rbd_mirror/mock/MockBaseRequest.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/rbd_mirror/mock/MockBaseRequest.h b/src/test/rbd_mirror/mock/MockBaseRequest.h new file mode 100644 index 000000000..c85eab434 --- /dev/null +++ b/src/test/rbd_mirror/mock/MockBaseRequest.h @@ -0,0 +1,26 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab + +#ifndef CEPH_MOCK_BASE_REQUEST_H +#define CEPH_MOCK_BASE_REQUEST_H + +#include "tools/rbd_mirror/BaseRequest.h" +#include <gmock/gmock.h> + +struct Context; + +namespace rbd { +namespace mirror { + +struct MockBaseRequest : public BaseRequest { + MockBaseRequest() : BaseRequest(nullptr) {} + + Context* on_finish = nullptr; + + MOCK_METHOD0(send, void()); +}; + +} // namespace mirror +} // namepace rbd + +#endif // CEPH_MOCK_BASE_REQUEST_H |