10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
HTTPServerFactoryMock.h
1
#ifndef TENDUKE_TEST_MOCKS_HTTPSERVERFACTORYMOCK_H
2
#define TENDUKE_TEST_MOCKS_HTTPSERVERFACTORYMOCK_H
3
4
#include "http/server/HTTPServerFactory.h"
5
6
#include "gmock/gmock.h"
7
8
namespace
tenduke
{
namespace
test {
namespace
mocks {
9
10
class
HTTPServerFactoryMock
:
public
tenduke::http::server::HTTPServerFactory
11
{
12
public
:
13
MOCK_METHOD((std::unique_ptr<tenduke::http::server::AbstractHTTPServer>),
create
, (std::uint16_t port), (
const
,
override
));
14
15
static
std::shared_ptr<HTTPServerFactoryMock> createShared()
16
{
17
return
std::make_shared<HTTPServerFactoryMock>();
18
}
19
};
20
21
}}}
22
23
#endif
//TENDUKE_TEST_MOCKS_HTTPSERVERFACTORYMOCK_H
tenduke::http::server::HTTPServerFactory
Creates HTTPServer.
Definition
HTTPServerFactory.h:14
tenduke::http::server::HTTPServerFactory::create
virtual std::unique_ptr< tenduke::http::server::AbstractHTTPServer > create(std::uint16_t port) const =0
Creates the HTTP-server.
tenduke::test::mocks::HTTPServerFactoryMock
Definition
HTTPServerFactoryMock.h:11
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
osbrowser
test
mocks
HTTPServerFactoryMock.h
Generated by
1.9.8