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::sdkInterfaces::test::MockAlexaInterfaceMessageSender Class Reference

Mock class that implements the AlexaInterfaceResponseSender. More...

#include <MockAlexaInterfaceMessageSender.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender:
Collaboration graph
[legend]

Public Member Functions

 MOCK_METHOD4 (sendResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &jsonPayload))
 
 MOCK_METHOD6 (sendResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &responseNamespace, const std::string &responseName, const std::string &jsonPayload))
 
 MOCK_METHOD5 (sendErrorResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const ErrorResponseType errorType, const std::string &errorMessage))
 
 MOCK_METHOD5 (sendErrorResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &responseNamespace, const std::string &payload))
 
 MOCK_METHOD3 (sendDeferredResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const int estimatedDeferralInSeconds))
 
 MOCK_METHOD1 (alexaResponseTypeToErrorType, ErrorResponseType(const avsCommon::avs::AlexaResponseType &responseType))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AlexaInterfaceMessageSenderInterface
virtual ~AlexaInterfaceMessageSenderInterface ()=default
 
virtual bool sendResponseEvent (const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &jsonPayload="{}")=0
 
virtual bool sendResponseEvent (const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &responseNamespace, const std::string &responseName, const std::string &jsonPayload="{}")=0
 
virtual bool sendErrorResponseEvent (const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const ErrorResponseType errorType, const std::string &errorMessage="")=0
 
virtual bool sendErrorResponseEvent (const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &responseNamespace, const std::string &jsonPayload="{}")=0
 
virtual bool sendDeferredResponseEvent (const std::string &instance, const std::string &correlationToken, const int estimatedDeferralInSeconds=0)=0
 

Additional Inherited Members

- Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::AlexaInterfaceMessageSenderInterface
enum  ErrorResponseType {
  ErrorResponseType::ALREADY_IN_OPERATION, ErrorResponseType::BRIDGE_UNREACHABLE, ErrorResponseType::ENDPOINT_BUSY, ErrorResponseType::ENDPOINT_LOW_POWER,
  ErrorResponseType::ENDPOINT_UNREACHABLE, ErrorResponseType::EXPIRED_AUTHORIZATION_CREDENTIAL, ErrorResponseType::FIRMWARE_OUT_OF_DATE, ErrorResponseType::HARDWARE_MALFUNCTION,
  ErrorResponseType::INSUFFICIENT_PERMISSIONS, ErrorResponseType::INTERNAL_ERROR, ErrorResponseType::INVALID_AUTHORIZATION_CREDENTIAL, ErrorResponseType::INVALID_DIRECTIVE,
  ErrorResponseType::INVALID_VALUE, ErrorResponseType::NO_SUCH_ENDPOINT, ErrorResponseType::NOT_CALIBRATED, ErrorResponseType::NOT_SUPPORTED_IN_CURRENT_MODE,
  ErrorResponseType::NOT_IN_OPERATION, ErrorResponseType::POWER_LEVEL_NOT_SUPPORTED, ErrorResponseType::RATE_LIMIT_EXCEEDED, ErrorResponseType::TEMPERATURE_VALUE_OUT_OF_RANGE,
  ErrorResponseType::VALUE_OUT_OF_RANGE
}
 
enum  AlexaVideoErrorResponseType {
  AlexaVideoErrorResponseType::ACTION_NOT_PERMITTED_FOR_CONTENT, AlexaVideoErrorResponseType::CONFIRMATION_REQUIRED, AlexaVideoErrorResponseType::CONTENT_NOT_RECORDABLE, AlexaVideoErrorResponseType::NOT_SUBSCRIBED,
  AlexaVideoErrorResponseType::RECORDING_EXISTS, AlexaVideoErrorResponseType::STORAGE_FULL, AlexaVideoErrorResponseType::TITLE_DISAMBIGUATION_REQUIRED, AlexaVideoErrorResponseType::TUNER_OCCUPIED,
  AlexaVideoErrorResponseType::NONE
}
 
- Static Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AlexaInterfaceMessageSenderInterface
static std::string alexaVideoErrorResponseToString (AlexaVideoErrorResponseType responseType)
 
static ErrorResponseType alexaResponseTypeToErrorType (const avsCommon::avs::AlexaResponseType responseType)
 

Detailed Description

Mock class that implements the AlexaInterfaceResponseSender.

Member Function Documentation

◆ MOCK_METHOD1()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender::MOCK_METHOD1 ( alexaResponseTypeToErrorType  ,
ErrorResponseType(const avsCommon::avs::AlexaResponseType &responseType)   
)

◆ MOCK_METHOD3()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender::MOCK_METHOD3 ( sendDeferredResponseEvent  ,
bool(const std::string &instance, const std::string &correlationToken, const int estimatedDeferralInSeconds)   
)

◆ MOCK_METHOD4()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender::MOCK_METHOD4 ( sendResponseEvent  ,
bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &jsonPayload)   
)

◆ MOCK_METHOD5() [1/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender::MOCK_METHOD5 ( sendErrorResponseEvent  ,
bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const ErrorResponseType errorType, const std::string &errorMessage)   
)

◆ MOCK_METHOD5() [2/2]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender::MOCK_METHOD5 ( sendErrorResponseEvent  ,
bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &responseNamespace, const std::string &payload)   
)

◆ MOCK_METHOD6()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockAlexaInterfaceMessageSender::MOCK_METHOD6 ( sendResponseEvent  ,
bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &responseNamespace, const std::string &responseName, const std::string &jsonPayload)   
)

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