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

Mock class that implements the CapabilitiesDelegateInterface. More...

#include <MockCapabilitiesDelegate.h>

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

Public Member Functions

 MOCK_METHOD2 (addOrUpdateEndpoint, bool(const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities))
 
 MOCK_METHOD2 (deleteEndpoint, bool(const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities))
 
 MOCK_METHOD1 (addCapabilitiesObserver, void(std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer))
 
 MOCK_METHOD1 (removeCapabilitiesObserver, void(std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer))
 
 MOCK_METHOD0 (invalidateCapabilities, void())
 
 MOCK_METHOD1 (setMessageSender, void(const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &messageSender))
 
 MOCK_METHOD1 (onAlexaEventProcessedReceived, void(const std::string &eventCorrelationToken))
 
 MOCK_METHOD1 (onAVSGatewayChanged, void(const std::string &avsGateway))
 
 MOCK_METHOD2 (onConnectionStatusChanged, void(const Status, const ChangedReason))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::CapabilitiesDelegateInterface
virtual ~CapabilitiesDelegateInterface ()=default
 
virtual bool addOrUpdateEndpoint (const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities)=0
 
virtual bool deleteEndpoint (const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities)=0
 
virtual void addCapabilitiesObserver (std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer)=0
 
virtual void removeCapabilitiesObserver (std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer)=0
 
virtual void invalidateCapabilities ()=0
 
virtual void setMessageSender (const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &messageSender)=0
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AlexaEventProcessedObserverInterface
virtual ~AlexaEventProcessedObserverInterface ()=default
 
virtual void onAlexaEventProcessedReceived (const std::string &eventCorrelationToken)=0
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AVSGatewayObserverInterface
virtual ~AVSGatewayObserverInterface ()=default
 
virtual void onAVSGatewayChanged (const std::string &avsGateway)=0
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::ConnectionStatusObserverInterface
virtual ~ConnectionStatusObserverInterface ()=default
 
virtual void onConnectionStatusChanged (const Status status, const ChangedReason reason)=0
 
virtual void onConnectionStatusChanged (const Status status, const std::vector< EngineConnectionStatus > &engineStatuses)
 

Additional Inherited Members

- Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::ConnectionStatusObserverInterface
enum  Status { Status::DISCONNECTED, Status::PENDING, Status::CONNECTED }
 
enum  ChangedReason {
  ChangedReason::NONE, ChangedReason::SUCCESS, ChangedReason::UNRECOVERABLE_ERROR, ChangedReason::ACL_CLIENT_REQUEST,
  ChangedReason::ACL_DISABLED, ChangedReason::DNS_TIMEDOUT, ChangedReason::CONNECTION_TIMEDOUT, ChangedReason::CONNECTION_THROTTLED,
  ChangedReason::INVALID_AUTH, ChangedReason::PING_TIMEDOUT, ChangedReason::WRITE_TIMEDOUT, ChangedReason::READ_TIMEDOUT,
  ChangedReason::FAILURE_PROTOCOL_ERROR, ChangedReason::INTERNAL_ERROR, ChangedReason::SERVER_INTERNAL_ERROR, ChangedReason::SERVER_SIDE_DISCONNECT,
  ChangedReason::SERVER_ENDPOINT_CHANGED
}
 

Detailed Description

Mock class that implements the CapabilitiesDelegateInterface.

Member Function Documentation

◆ MOCK_METHOD0()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD0 ( invalidateCapabilities  ,
void()   
)

◆ MOCK_METHOD1() [1/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD1 ( addCapabilitiesObserver  ,
void(std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer)   
)

◆ MOCK_METHOD1() [2/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD1 ( removeCapabilitiesObserver  ,
void(std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer)   
)

◆ MOCK_METHOD1() [3/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD1 ( setMessageSender  ,
void(const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &messageSender)   
)

◆ MOCK_METHOD1() [4/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD1 ( onAlexaEventProcessedReceived  ,
void(const std::string &eventCorrelationToken)   
)

◆ MOCK_METHOD1() [5/5]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD1 ( onAVSGatewayChanged  ,
void(const std::string &avsGateway)   
)

◆ MOCK_METHOD2() [1/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD2 ( addOrUpdateEndpoint  ,
bool(const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities)   
)

◆ MOCK_METHOD2() [2/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD2 ( deleteEndpoint  ,
bool(const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities)   
)

◆ MOCK_METHOD2() [3/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockCapabilitiesDelegate::MOCK_METHOD2 ( onConnectionStatusChanged  ,
void(const Status, const ChangedReason  
)

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

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