AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions
CurlWrapperMock.cpp File Reference
#include "CurlWrapperMock.h"
#include <rapidjson/document.h>
#include <cstdarg>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include "DavsServiceMock.h"
#include "acsdkAssetsCommon/Base64Url.h"
#include "acsdkAssetsCommon/CurlWrapper.h"
Include dependency graph for CurlWrapperMock.cpp:

Classes

struct  MyCurlContext
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::acsdkAssets
 
 alexaClientSDK::acsdkAssets::common
 

Typedefs

typedef size_t(* WRITE_CALLBACK) (char *ptr, size_t size, size_t nmemb, void *userdata)
 

Functions

CURL * curl_easy_init (void)
 
static void prepareResponseBasedOnFile (MyCurlContext *c, const string &fileName)
 
CURLcode curl_easy_setopt (CURL *curl, CURLoption option,...)
 
CURLcode curl_easy_perform (CURL *curl)
 
void curl_easy_cleanup (CURL *curl)
 
CURLcode curl_easy_getinfo (CURL *curl, CURLINFO info,...)
 
struct curl_slist * curl_slist_append (struct curl_slist *existing, const char *data)
 
void free_recursively (struct curl_slist *head)
 
void curl_slist_free_all (struct curl_slist *head)
 

Typedef Documentation

◆ WRITE_CALLBACK

typedef size_t(* WRITE_CALLBACK) (char *ptr, size_t size, size_t nmemb, void *userdata)

Function Documentation

◆ curl_easy_cleanup()

void curl_easy_cleanup ( CURL *  curl)

◆ curl_easy_getinfo()

CURLcode curl_easy_getinfo ( CURL *  curl,
CURLINFO  info,
  ... 
)

◆ curl_easy_init()

CURL* curl_easy_init ( void  )

◆ curl_easy_perform()

CURLcode curl_easy_perform ( CURL *  curl)

◆ curl_easy_setopt()

CURLcode curl_easy_setopt ( CURL *  curl,
CURLoption  option,
  ... 
)

◆ curl_slist_append()

struct curl_slist* curl_slist_append ( struct curl_slist *  existing,
const char *  data 
)

◆ curl_slist_free_all()

void curl_slist_free_all ( struct curl_slist *  head)

◆ free_recursively()

void free_recursively ( struct curl_slist *  head)

◆ prepareResponseBasedOnFile()

static void prepareResponseBasedOnFile ( MyCurlContext c,
const string &  fileName 
)
static

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0