10Duke Scale C++ Client
Loading...
Searching...
No Matches
URLMock.h
1#ifndef TENDUKE_TEST_MOCKS_URLMOCK_H
2#define TENDUKE_TEST_MOCKS_URLMOCK_H
3
4#include "net/URL.h"
5
6#include "gmock/gmock.h"
7
8namespace tenduke { namespace test { namespace mocks {
9
11{
12public:
13 MOCK_METHOD((std::multimap<std::string, std::string>), getQueryParameters, (), (const, override));
14 MOCK_METHOD(std::string, getPath, (), (const, override));
15 MOCK_METHOD(void, setPort, (std::uint16_t port), (override));
16 MOCK_METHOD(std::string, toString, (), (const, override));
17};
18
19}}}
20
21#endif //TENDUKE_TEST_MOCKS_URLMOCK_H
Represents URL.
Definition URL.h:15
virtual void setPort(std::uint16_t port)=0
Sets port.
virtual std::string getPath() const =0
Returns path, URL-decoded.
virtual std::string toString() const =0
Returns the URL as string.
virtual std::multimap< std::string, std::string > getQueryParameters() const =0
Returns the query parameters, URL-decoded.
Definition URLMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7