10Duke Scale C++ Client
Loading...
Searching...
No Matches
HTTPRequestAuthenticatorMock.h
1#ifndef TENDUKE_TEST_MOCKS_HTTPREQUESTAUTHENTICATORMOCK_H
2#define TENDUKE_TEST_MOCKS_HTTPREQUESTAUTHENTICATORMOCK_H
3
4#include "http/HTTPRequestAuthenticator.h"
5
6#include "gmock/gmock.h"
7
8namespace tenduke { namespace test { namespace mocks {
9
11public:
12 MOCK_METHOD((std::multimap<std::string, std::string>), authenticate, (const tenduke::http::HTTPRequest &request), (const, override));
13
14 static std::shared_ptr<HTTPRequestAuthenticatorMock> mkEmpty()
15 {
16 auto authenticator = std::make_shared<HTTPRequestAuthenticatorMock>();
17 EXPECT_CALL(*authenticator, authenticate(::testing::_)).WillRepeatedly(::testing::Return(std::multimap<std::string, std::string>()));
18 return authenticator;
19 }
20};
21
22}}}
23
24#endif //TENDUKE_TEST_MOCKS_HTTPREQUESTAUTHENTICATORMOCK_H
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 BackendConfiguration.h:7