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

#include <MockAuthDelegate.h>

Inheritance diagram for alexaClientSDK::acl::test::MockAuthDelegate:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acl::test::MockAuthDelegate:
Collaboration graph
[legend]

Public Member Functions

void setAuthToken (std::string authToken)
 
AuthDelegateInterface methods
 MOCK_METHOD1 (addAuthObserver, void(std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface >))
 
 MOCK_METHOD1 (removeAuthObserver, void(std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface >))
 
std::string getAuthToken ()
 
 MOCK_METHOD1 (onAuthFailure, void(const std::string &token))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterface
virtual ~AuthDelegateInterface ()=default
 
virtual void addAuthObserver (std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface > observer)=0
 
virtual void removeAuthObserver (std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface > observer)=0
 
virtual void onAuthFailure (const std::string &token)=0
 

Member Function Documentation

◆ getAuthToken()

std::string alexaClientSDK::acl::test::MockAuthDelegate::getAuthToken ( )
inlinevirtual

Get the current LWA authorization token.

Returns
The current authorization token. The returned value will be empty if an authorization token has yet to be acquired or if the most recently acquired token has expired.

Implements alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterface.

◆ MOCK_METHOD1() [1/3]

alexaClientSDK::acl::test::MockAuthDelegate::MOCK_METHOD1 ( addAuthObserver  ,
void(std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface >)   
)

◆ MOCK_METHOD1() [2/3]

alexaClientSDK::acl::test::MockAuthDelegate::MOCK_METHOD1 ( removeAuthObserver  ,
void(std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface >)   
)

◆ MOCK_METHOD1() [3/3]

alexaClientSDK::acl::test::MockAuthDelegate::MOCK_METHOD1 ( onAuthFailure  ,
void(const std::string &token)   
)

◆ setAuthToken()

void alexaClientSDK::acl::test::MockAuthDelegate::setAuthToken ( std::string  authToken)
inline

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