]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
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_IO_QOS_IMAGE_DISPATCH_H | |
5 | #define CEPH_TEST_LIBRBD_MOCK_IO_QOS_IMAGE_DISPATCH_H | |
6 | ||
7 | #include "gmock/gmock.h" | |
8 | #include "librbd/io/Types.h" | |
9 | #include <atomic> | |
10 | ||
11 | struct Context; | |
12 | ||
13 | namespace librbd { | |
14 | namespace io { | |
15 | ||
16 | struct MockQosImageDispatch { | |
17 | MOCK_METHOD4(needs_throttle, bool(bool, const Extents&, | |
18 | std::atomic<uint32_t>*, Context*)); | |
19 | }; | |
20 | ||
21 | } // namespace io | |
22 | } // namespace librbd | |
23 | ||
24 | #endif // CEPH_TEST_LIBRBD_MOCK_IO_QOS_IMAGE_DISPATCH_H |