AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
A mock adapter that allow us to mock the preHandleDirective since gmock does not work with unique_ptr. More...
#include <MockDirectiveHandler.h>
Public Member Functions | |
virtual | ~DirectiveHandlerMockAdapter ()=default |
virtual void | preHandleDirective (const std::shared_ptr< avsCommon::avs::AVSDirective > &directive, const std::shared_ptr< avsCommon::sdkInterfaces::DirectiveHandlerResultInterface > &result)=0 |
DirectiveHandlerInterface method. | |
void | preHandleDirective (std::shared_ptr< avsCommon::avs::AVSDirective > directive, std::unique_ptr< avsCommon::sdkInterfaces::DirectiveHandlerResultInterface > result) override |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::DirectiveHandlerInterface | |
virtual | ~DirectiveHandlerInterface ()=default |
virtual void | handleDirectiveImmediately (std::shared_ptr< avsCommon::avs::AVSDirective > directive)=0 |
virtual void | preHandleDirective (std::shared_ptr< avsCommon::avs::AVSDirective > directive, std::unique_ptr< DirectiveHandlerResultInterface > result)=0 |
virtual bool | handleDirective (const std::string &messageId)=0 |
virtual void | cancelDirective (const std::string &messageId)=0 |
virtual void | onDeregistered ()=0 |
virtual avs::DirectiveHandlerConfiguration | getConfiguration () const =0 |
A mock adapter that allow us to mock the preHandleDirective since gmock does not work with unique_ptr.
|
virtualdefault |
Destructor.
|
override |
|
pure virtual |
Variant of preHandleDirective taking a shared_ptr instead of a unique_ptr.
directive | The AVSDirective to be (pre) handled. |
result | The object to receive completion/failure notifications. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0