1#ifndef TENDUKE_TEST_MOCKS_HTTPCLIENTMOCK_H
2#define TENDUKE_TEST_MOCKS_HTTPCLIENTMOCK_H
4#include "http/HTTPClient.h"
5#include "http/HTTPRequestBuilder.h"
7#include "gmock/gmock.h"
11namespace tenduke {
namespace test {
namespace mocks {
16 MOCK_METHOD(std::unique_ptr<tenduke::http::HTTPCall>,
call,
17 (std::shared_ptr<const tenduke::http::HTTPRequest>
call), (
const,
override));
19 static std::shared_ptr<HTTPClientMock> createShared()
21 return std::make_shared<HTTPClientMock>();
A simple HTTP-client.
Definition HTTPClient.h:19
virtual std::unique_ptr< tenduke::http::HTTPCall > call(std::shared_ptr< const tenduke::http::HTTPRequest > request) const =0
Creates new HTTPCall from given HTTPRequest.
virtual tenduke::http::HTTPRequestBuilder request() const =0
Starts building request.
Builds HTTPRequest.
Definition HTTPRequestBuilder.h:22
Definition HTTPClientMock.h:13
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4