1#ifndef TENDUKE_TEST_MOCKS_HTTPREQUESTAUTHENTICATORMOCK_H
2#define TENDUKE_TEST_MOCKS_HTTPREQUESTAUTHENTICATORMOCK_H
4#include "http/HTTPRequestAuthenticator.h"
6#include "gmock/gmock.h"
8namespace tenduke {
namespace test {
namespace mocks {
14 static std::shared_ptr<HTTPRequestAuthenticatorMock> mkEmpty()
16 auto authenticator = std::make_shared<HTTPRequestAuthenticatorMock>();
17 EXPECT_CALL(*authenticator,
authenticate(::testing::_)).WillRepeatedly(::testing::Return(std::multimap<std::string, std::string>()));
This is a service, that can be added to tenduke::http::HTTPRequest to add authentication information ...
Definition HTTPRequestAuthenticator.h:21
virtual std::multimap< std::string, std::string > authenticate(const tenduke::http::HTTPRequest &request) const =0
Returns headers to authenticate the request.
HTTP-request, which contains all necessary details to construct the request.
Definition HTTPRequest.h:22
Definition HTTPRequestAuthenticatorMock.h:10
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4