blob: 8b51a0315db286f69e7673eda332ef2f95d0e762 [file] [log] [blame]
Tom Joseph74f27c72021-05-16 07:58:53 -07001#pragma once
2
3#include "requester/request.hpp"
4
5#include <gmock/gmock.h>
6#include <gtest/gtest.h>
7
8namespace pldm
9{
10
11namespace requester
12{
13
Tom Joseph74f27c72021-05-16 07:58:53 -070014class MockRequest : public RequestRetryTimer
15{
16 public:
17 MockRequest(int /*fd*/, mctp_eid_t /*eid*/, sdeventplus::Event& event,
18 pldm::Request&& /*requestMsg*/, uint8_t numRetries,
Brad Bishop5079ac42021-08-19 18:35:06 -040019 std::chrono::milliseconds responseTimeOut) :
Tom Joseph74f27c72021-05-16 07:58:53 -070020 RequestRetryTimer(event, numRetries, responseTimeOut)
21 {}
22
23 MOCK_METHOD(int, send, (), (const, override));
24};
25
26} // namespace requester
27
28} // namespace pldm