Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "requester/request.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | #include <gtest/gtest.h> |
| 7 | |
| 8 | namespace pldm |
| 9 | { |
| 10 | |
| 11 | namespace requester |
| 12 | { |
| 13 | |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 14 | class MockRequest : public RequestRetryTimer |
| 15 | { |
| 16 | public: |
| 17 | MockRequest(int /*fd*/, mctp_eid_t /*eid*/, sdeventplus::Event& event, |
| 18 | pldm::Request&& /*requestMsg*/, uint8_t numRetries, |
Manojkiran Eda | 9fffea2 | 2021-10-27 16:03:27 +0530 | [diff] [blame] | 19 | std::chrono::milliseconds responseTimeOut, |
| 20 | int /*currentSendbuffSize*/, bool /*verbose*/) : |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 21 | RequestRetryTimer(event, numRetries, responseTimeOut) |
| 22 | {} |
| 23 | |
| 24 | MOCK_METHOD(int, send, (), (const, override)); |
| 25 | }; |
| 26 | |
| 27 | } // namespace requester |
| 28 | |
Manojkiran Eda | 9fffea2 | 2021-10-27 16:03:27 +0530 | [diff] [blame] | 29 | } // namespace pldm |