1#ifndef TENDUKE_TEST_MOCKS_BASE64DECODERMOCK_H
2#define TENDUKE_TEST_MOCKS_BASE64DECODERMOCK_H
4#include "utl/Base64Decoder.h"
5#include "gmock/gmock.h"
7namespace tenduke {
namespace test {
namespace mocks {
11 MOCK_METHOD(std::unique_ptr<tenduke::utl::BinaryData>,
decode, (
const std::string &a), (
const,
override));
12 MOCK_METHOD(std::unique_ptr<tenduke::utl::BinaryData>,
decode, (
const char * a, std::size_t b), (
const,
override));
13 MOCK_METHOD(std::string,
decodeString, (
const std::string &a), (
const,
override));
14 MOCK_METHOD(std::string,
decodeString, (
const char *a, std::size_t b), (
const,
override));
16 MOCK_METHOD(std::unique_ptr<tenduke::utl::BinaryData>,
decodeUrlSafe, (
const std::string &a), (
const,
override));
17 MOCK_METHOD(std::unique_ptr<tenduke::utl::BinaryData>,
decodeUrlSafe, (
const char * a, std::size_t b), (
const,
override));
19 MOCK_METHOD(std::string,
decodeUrlSafeString, (
const char *a, std::size_t b), (
const,
override));
Definition Base64DecoderMock.h:9
Base64-decoder.
Definition Base64Decoder.h:17
virtual std::string decodeString(const std::string &base64EncodedString) const =0
Decodes given Base64-encoded string to string (assumes that the encoded data is a string).
virtual std::unique_ptr< BinaryData > decodeUrlSafe(const std::string &base64EncodedString) const =0
Decodes given URL-safe Base64-encoded string to BinaryData.
virtual std::unique_ptr< BinaryData > decode(const std::string &base64EncodedString) const =0
Decodes given Base64-encoded string to bytes.
virtual std::string decodeUrlSafeString(const std::string &base64EncodedString) const =0
Decodes given URL-safe Base64-encoded string to string (assumes that the encoded data is a string).
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4