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