AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::libcurlUtils::test::MockHttpPost Class Reference

A mock object that implements the HttpPostInterface. More...

#include <MockHttpPost.h>

Inheritance diagram for alexaClientSDK::avsCommon::utils::libcurlUtils::test::MockHttpPost:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::utils::libcurlUtils::test::MockHttpPost:
Collaboration graph
[legend]

Public Member Functions

 MOCK_METHOD4 (doPost, long(const std::string &url, const std::string &data, std::chrono::seconds timeout, std::string &body))
 
 MOCK_METHOD4 (doPost, HTTPResponse(const std::string &url, const std::vector< std::string > headerLines, const std::vector< std::pair< std::string, std::string >> &data, std::chrono::seconds timeout))
 
 MOCK_METHOD4 (doPost, HTTPResponse(const std::string &url, const std::vector< std::string > headerLines, const std::string &data, std::chrono::seconds timeout))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPostInterface
virtual ~HttpPostInterface ()=default
 Virtual destructor to assure proper cleanup of derived types. More...
 
virtual long doPost (const std::string &url, const std::string &data, std::chrono::seconds timeout, std::string &body)=0
 
virtual HTTPResponse doPost (const std::string &url, const std::vector< std::string > headerLines, const std::vector< std::pair< std::string, std::string >> &data, std::chrono::seconds timeout)=0
 
virtual HTTPResponse doPost (const std::string &url, const std::vector< std::string > headerLines, const std::string &data, std::chrono::seconds timeout)=0
 

Detailed Description

A mock object that implements the HttpPostInterface.

Member Function Documentation

◆ MOCK_METHOD4() [1/3]

alexaClientSDK::avsCommon::utils::libcurlUtils::test::MockHttpPost::MOCK_METHOD4 ( doPost  ,
long(const std::string &url, const std::string &data, std::chrono::seconds timeout, std::string &body)   
)

◆ MOCK_METHOD4() [2/3]

alexaClientSDK::avsCommon::utils::libcurlUtils::test::MockHttpPost::MOCK_METHOD4 ( doPost  ,
HTTPResponse(const std::string &url, const std::vector< std::string > headerLines, const std::vector< std::pair< std::string, std::string >> &data, std::chrono::seconds timeout)   
)

◆ MOCK_METHOD4() [3/3]

alexaClientSDK::avsCommon::utils::libcurlUtils::test::MockHttpPost::MOCK_METHOD4 ( doPost  ,
HTTPResponse(const std::string &url, const std::vector< std::string > headerLines, const std::string &data, std::chrono::seconds timeout)   
)

The documentation for this class was generated from the following file:

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