AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockAlexaInterfaceMessageSenderInternal.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_CAPABILITYAGENTS_ALEXA_TEST_INCLUDE_MOCKALEXAINTERFACEMESSAGESENDERINTERNAL_H_
17 #define ALEXA_CLIENT_SDK_CAPABILITYAGENTS_ALEXA_TEST_INCLUDE_MOCKALEXAINTERFACEMESSAGESENDERINTERNAL_H_
18 
20 
21 namespace alexaClientSDK {
22 namespace capabilityAgents {
23 namespace alexa {
24 namespace test {
25 
27 class MockAlexaInterfaceMessageSenderInternal : public AlexaInterfaceMessageSenderInternalInterface {
28 public:
31  bool(
32  const std::string& instance,
33  const std::string& correlationToken,
34  const avsCommon::avs::AVSMessageEndpoint& endpoint,
35  const std::string& jsonPayload));
38  bool(
39  const std::string& instance,
40  const std::string& correlationToken,
41  const avsCommon::avs::AVSMessageEndpoint& endpoint,
42  const std::string& responseNamespace,
43  const std::string& responseName,
44  const std::string& jsonPayload));
47  bool(
48  const std::string& instance,
49  const std::string& correlationToken,
50  const avsCommon::avs::AVSMessageEndpoint& endpoint,
51  const ErrorResponseType errorType,
52  const std::string& errorMessage));
55  bool(
56  const std::string& instance,
57  const std::string& correlationToken,
58  const avsCommon::avs::AVSMessageEndpoint& endpoint,
59  const std::string& responseNamespace,
60  const std::string& payload));
63  bool(const std::string& instance, const std::string& correlationToken, const int estimatedDeferralInSeconds));
69  bool(
70  const std::string& instance,
71  const std::string& correlationToken,
72  const avsCommon::avs::AVSMessageEndpoint& endpoint));
73 };
74 
75 } // namespace test
76 } // namespace alexa
77 } // namespace capabilityAgents
78 } // namespace alexaClientSDK
79 
80 #endif // ALEXA_CLIENT_SDK_CAPABILITYAGENTS_ALEXA_TEST_INCLUDE_MOCKALEXAINTERFACEMESSAGESENDERINTERNAL_H_
MOCK_METHOD3(sendStateReportEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint))
virtual bool sendDeferredResponseEvent(const std::string &instance, const std::string &correlationToken, const int estimatedDeferralInSeconds=0)=0
ErrorResponseType
Definition: AlexaInterfaceMessageSenderInterface.h:35
MOCK_METHOD1(alexaResponseTypeToErrorType, ErrorResponseType(const avsCommon::avs::AlexaResponseType &responseType))
AlexaResponseType
Definition: AlexaResponseType.h:30
MOCK_METHOD6(sendResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &responseNamespace, const std::string &responseName, const std::string &jsonPayload))
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
MOCK_METHOD4(sendResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &jsonPayload))
static ErrorResponseType alexaResponseTypeToErrorType(const avsCommon::avs::AlexaResponseType responseType)
Definition: AlexaInterfaceMessageSenderInterface.h:273
virtual bool sendStateReportEvent(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint)=0
virtual bool sendErrorResponseEvent(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const ErrorResponseType errorType, const std::string &errorMessage="")=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
MOCK_METHOD5(sendErrorResponseEvent, bool(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const ErrorResponseType errorType, const std::string &errorMessage))
virtual bool sendResponseEvent(const std::string &instance, const std::string &correlationToken, const avsCommon::avs::AVSMessageEndpoint &endpoint, const std::string &jsonPayload="{}")=0

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