1#ifndef TENDUKE_TEST_MOCKS_URLDECODERMOCK_H
2#define TENDUKE_TEST_MOCKS_URLDECODERMOCK_H
4#include "net/URLDecoder.h"
6#include "gmock/gmock.h"
10namespace tenduke {
namespace test {
namespace mocks {
15 MOCK_METHOD(std::string,
decode, (
const char *s), (
const,
override));
16 MOCK_METHOD(std::string,
decode, (
const char *s,
size_t l), (
const,
override));
21 auto mock = std::make_shared<URLDecoderMock>();
23 EXPECT_CALL(*mock,
decode(::testing::_)).WillRepeatedly(::testing::ReturnArg<0>());
Service to URL-decode a string.
Definition URLDecoder.h:14
virtual std::string decode(const char *string, std::size_t len) const =0
URL-decodes given string.
Definition URLDecoderMock.h:13
static std::shared_ptr< URLDecoderMock > createShared()
Makes identity version.
Definition URLDecoderMock.h:19
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16