10Duke Scale C++ Client
Loading...
Searching...
No Matches
JSONParserMock.h
1#ifndef TENDUKE_TEST_MOCKS_JSONPARSERMOCK_H
2#define TENDUKE_TEST_MOCKS_JSONPARSERMOCK_H
3
4#include "json/JSONParser.h"
5#include "gmock/gmock.h"
6#include <memory>
7
8namespace tenduke { namespace test { namespace mocks {
9
11{
12public:
13 MOCK_METHOD(std::unique_ptr<tenduke::json::JSONElement>, from, (const char * a, std::size_t b), (const, override));
14 MOCK_METHOD(std::unique_ptr<tenduke::json::JSONElement>, from, (const std::string &a), (const, override));
15
16 static std::shared_ptr<JSONParserMock> createShared()
17 {
18 return std::make_shared<JSONParserMock>();
19 }
20};
21
22}}}
23
24#endif //TENDUKE_TEST_MOCKS_JSONPARSERMOCK_H
Parser for JSON documents.
Definition JSONParser.h:15
virtual std::unique_ptr< JSONElement > from(const char *jsonAsString, std::size_t length) const =0
Parses JSON from given string.
Definition JSONParserMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7