blob: e77a3cbc47f0e82eb8ed2dc36ab772fc487bb798 [file] [log] [blame]
Tom Joseph74f27c72021-05-16 07:58:53 -07001#pragma once
2
Rashmica Gupta1ed5f7a2023-05-22 13:56:42 +10003#include "common/transport.hpp"
Tom Joseph74f27c72021-05-16 07:58:53 -07004#include "requester/request.hpp"
5
Rashmica Gupta1ed5f7a2023-05-22 13:56:42 +10006#include <libpldm/transport.h>
7
Tom Joseph74f27c72021-05-16 07:58:53 -07008#include <gmock/gmock.h>
9#include <gtest/gtest.h>
10
11namespace pldm
12{
13
14namespace requester
15{
16
Tom Joseph74f27c72021-05-16 07:58:53 -070017class MockRequest : public RequestRetryTimer
18{
19 public:
Rashmica Gupta1ed5f7a2023-05-22 13:56:42 +100020 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 Joseph74f27c72021-05-16 07:58:53 -070024 RequestRetryTimer(event, numRetries, responseTimeOut)
25 {}
26
27 MOCK_METHOD(int, send, (), (const, override));
28};
29
30} // namespace requester
31
Manojkiran Eda9fffea22021-10-27 16:03:27 +053032} // namespace pldm