blob: b8e9efb8b948e8ba4bb3bc9cdb4e68e6f1e415c5 [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
14using namespace std::chrono;
15
16class MockRequest : public RequestRetryTimer
17{
18 public:
19 MockRequest(int /*fd*/, mctp_eid_t /*eid*/, sdeventplus::Event& event,
20 pldm::Request&& /*requestMsg*/, uint8_t numRetries,
21 milliseconds responseTimeOut) :
22 RequestRetryTimer(event, numRetries, responseTimeOut)
23 {}
24
25 MOCK_METHOD(int, send, (), (const, override));
26};
27
28} // namespace requester
29
30} // namespace pldm