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::DirectiveHandlerMockAdapter Class Referenceabstract

A mock adapter that allow us to mock the preHandleDirective since gmock does not work with unique_ptr. More...

#include <MockDirectiveHandler.h>

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

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
 

Detailed Description

A mock adapter that allow us to mock the preHandleDirective since gmock does not work with unique_ptr.

Constructor & Destructor Documentation

◆ ~DirectiveHandlerMockAdapter()

virtual alexaClientSDK::avsCommon::sdkInterfaces::test::DirectiveHandlerMockAdapter::~DirectiveHandlerMockAdapter ( )
virtualdefault

Destructor.

Member Function Documentation

◆ preHandleDirective() [1/2]

void alexaClientSDK::avsCommon::sdkInterfaces::test::DirectiveHandlerMockAdapter::preHandleDirective ( std::shared_ptr< avsCommon::avs::AVSDirective directive,
std::unique_ptr< avsCommon::sdkInterfaces::DirectiveHandlerResultInterface result 
)
override

◆ preHandleDirective() [2/2]

virtual void alexaClientSDK::avsCommon::sdkInterfaces::test::DirectiveHandlerMockAdapter::preHandleDirective ( const std::shared_ptr< avsCommon::avs::AVSDirective > &  directive,
const std::shared_ptr< avsCommon::sdkInterfaces::DirectiveHandlerResultInterface > &  result 
)
pure virtual

Variant of preHandleDirective taking a shared_ptr instead of a unique_ptr.

Parameters
directiveThe AVSDirective to be (pre) handled.
resultThe object to receive completion/failure notifications.

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