1#ifndef TENDUKE_TEST_MOCKS_JSONPARSERMOCK_H
2#define TENDUKE_TEST_MOCKS_JSONPARSERMOCK_H
4#include "json/JSONParser.h"
5#include "gmock/gmock.h"
8namespace tenduke {
namespace test {
namespace mocks {
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));
16 static std::shared_ptr<JSONParserMock> createShared()
18 return std::make_shared<JSONParserMock>();
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 APIRequest.h:4