|
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
16 #ifndef ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_TESTDIRECTIVEHANDLER_H_
17 #define ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_TESTDIRECTIVEHANDLER_H_
19 #include <condition_variable>
26 #include <unordered_map>
35 namespace integration {
52 void handleDirectiveImmediately(std::shared_ptr<avsCommon::avs::AVSDirective> directive)
override;
54 void preHandleDirective(
55 std::shared_ptr<avsCommon::avs::AVSDirective> directive,
56 std::unique_ptr<avsCommon::sdkInterfaces::DirectiveHandlerResultInterface> result)
override;
58 bool handleDirective(
const std::string& messageId)
override;
60 void cancelDirective(
const std::string& messageId)
override;
64 void onDeregistered()
override;
82 return Type::UNSET == type;
91 return Type::HANDLE_IMMEDIATELY == type;
100 return Type::PREHANDLE == type;
109 return Type::HANDLE == type;
118 return Type::CANCEL == type;
149 std::shared_ptr<avsCommon::avs::AVSDirective>
directive;
152 std::shared_ptr<avsCommon::sdkInterfaces::DirectiveHandlerResultInterface>
result;
165 std::condition_variable m_wakeTrigger;
167 std::deque<DirectiveParams> m_queue;
169 std::unordered_map<std::string, std::shared_ptr<avsCommon::sdkInterfaces::DirectiveHandlerResultInterface>>
172 std::unordered_map<std::string, std::shared_ptr<avsCommon::avs::AVSDirective>> m_directives;
180 #endif // ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_TESTDIRECTIVEHANDLER_H_
Type type
Definition: TestDirectiveHandler.h:147
bool isCancel() const
Definition: TestDirectiveHandler.h:117
std::shared_ptr< avsCommon::sdkInterfaces::DirectiveHandlerResultInterface > result
Definition: TestDirectiveHandler.h:152
Definition: TestDirectiveHandler.h:42
Definition: AmdMetricWrapperTest.cpp:24
Definition: TestDirectiveHandler.h:69
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool isTimeout() const
Definition: TestDirectiveHandler.h:126
std::unordered_map< directiveRoutingRule::DirectiveRoutingRule, BlockingPolicy > DirectiveHandlerConfiguration
Definition: DirectiveHandlerConfiguration.h:32
bool isHandle() const
Definition: TestDirectiveHandler.h:108
std::shared_ptr< avsCommon::avs::AVSDirective > directive
Definition: TestDirectiveHandler.h:149
Definition: MockHTTP2Connection.cpp:19
bool isPreHandle() const
Definition: TestDirectiveHandler.h:99
bool isHandleImmediately() const
Definition: TestDirectiveHandler.h:90
Type
Definition: TestDirectiveHandler.h:131
Definition: DirectiveHandlerInterface.h:39
static const auto TIMEOUT
Definition: AssetManagerTest.cpp:18
bool isUnset() const
Definition: TestDirectiveHandler.h:81
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0