1#ifndef TENDUKE_TEST_MOCKS_URLENCODERMOCK_H
2#define TENDUKE_TEST_MOCKS_URLENCODERMOCK_H
4#include "net/URLEncoder.h"
6#include "gmock/gmock.h"
10namespace tenduke {
namespace test {
namespace mocks {
15 MOCK_METHOD(std::string,
encode, (
const std::string &s), (
const,
override));
20 auto mock = std::make_shared<URLEncoderMock>();
22 EXPECT_CALL(*mock,
encode(::testing::_)).WillRepeatedly(::testing::ReturnArg<0>());
Service to URL-encode a string.
Definition URLEncoder.h:13
virtual std::string encode(const std::string &stringToEncode) const =0
URL-encodes given string.
Definition URLEncoderMock.h:13
static std::shared_ptr< URLEncoderMock > createShared()
Makes identity version.
Definition URLEncoderMock.h:18
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4