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

#include <MockHTTP2Request.h>

Inheritance diagram for alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request:
Collaboration graph
[legend]

Public Member Functions

 MockHTTP2Request (const alexaClientSDK::avsCommon::utils::http2::HTTP2RequestConfig &config)
 
 MOCK_METHOD0 (cancel, bool())
 
 MOCK_CONST_METHOD0 (getId, std::string())
 
const std::string getUrl ()
 
std::shared_ptr< HTTP2RequestSourceInterfacegetSource ()
 
std::shared_ptr< HTTP2ResponseSinkInterfacegetSink ()
 
HTTP2RequestType getRequestType ()
 
std::shared_ptr< acl::test::MockMimeResponseSinkgetMimeResponseSink ()
 
std::shared_ptr< HTTP2MimeResponseDecodergetMimeDecoder ()
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::http2::HTTP2RequestInterface
virtual ~HTTP2RequestInterface ()=default
 
virtual bool cancel ()=0
 
virtual std::string getId () const =0
 

Detailed Description

A mock class of HTTP2RequestInterface.

Constructor & Destructor Documentation

◆ MockHTTP2Request()

alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::MockHTTP2Request ( const alexaClientSDK::avsCommon::utils::http2::HTTP2RequestConfig config)
explicit

Member Function Documentation

◆ getMimeDecoder()

std::shared_ptr< HTTP2MimeResponseDecoder > alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::getMimeDecoder ( )

Retrieve The MIME response decoder of the HTTP2 request.

Returns
The pointer to the MIME response decoder.

◆ getMimeResponseSink()

std::shared_ptr< acl::test::MockMimeResponseSink > alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::getMimeResponseSink ( )

Retrieve The MIME response sink that contains the parsed mime contents of the HTTP2 request.

Returns
The pointer to the MIME response sink.

◆ getRequestType()

HTTP2RequestType alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::getRequestType ( )

Retrieve the HTTP2 request type.

Returns
The HTTP2 request type.

◆ getSink()

std::shared_ptr< HTTP2ResponseSinkInterface > alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::getSink ( )

Retrieve the HTTP2 request sink.

Returns
The HTTP2 request sink.

◆ getSource()

std::shared_ptr< HTTP2RequestSourceInterface > alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::getSource ( )

Retrieve the HTTP2 request source.

Returns
The HTTP2 request source.

◆ getUrl()

const std::string alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::getUrl ( )

Retrieve the URL for the request.

Returns
The request URL.

◆ MOCK_CONST_METHOD0()

alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::MOCK_CONST_METHOD0 ( getId  ,
std::string()   
)

◆ MOCK_METHOD0()

alexaClientSDK::avsCommon::utils::http2::test::MockHTTP2Request::MOCK_METHOD0 ( cancel  ,
bool()   
)

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

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