AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockAPLCapabilityAgent.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 #ifndef ACSDK_APLCAPABILITYCOMMONINTERFACES_MOCKAPLCAPABILITYAGENT_H_
16 #define ACSDK_APLCAPABILITYCOMMONINTERFACES_MOCKAPLCAPABILITYAGENT_H_
17 
18 #include <gmock/gmock.h>
19 
21 
22 namespace alexaClientSDK {
23 namespace aplCapabilityCommonInterfaces {
24 namespace test {
25 
30 public:
33  void(
38  void(const aplCapabilityCommonInterfaces::PresentationToken& token, const bool markAsFailed));
44  void(
46  const aplEventPayload::VisualContext& visualContext));
49  void(const PresentationToken& token, const bool result, const std::string& error));
52  void(const PresentationToken& token, APLCommandExecutionEvent event, const std::string& error));
53  MOCK_METHOD1(recordRenderComplete, void(const std::chrono::steady_clock::time_point& timestamp));
55 };
56 
57 } // namespace test
58 } // namespace aplCapabilityCommonInterfaces
59 } // namespace alexaClientSDK
60 
61 #endif // ACSDK_APLCAPABILITYCOMMONINTERFACES_MOCKAPLCAPABILITYAGENT_H_
virtual void sendDataSourceFetchRequestEvent(const aplEventPayload::DataSourceFetch &payload)=0
MOCK_METHOD2(onActiveDocumentChanged, void(const aplCapabilityCommonInterfaces::PresentationToken &token, const alexaClientSDK::aplCapabilityCommonInterfaces::PresentationSession &session))
virtual void sendUserEvent(const aplEventPayload::UserEvent &payload)=0
virtual void recordRenderComplete(const std::chrono::steady_clock::time_point &timestamp)=0
virtual void processExecuteCommandsResult(const PresentationToken &token, APLCommandExecutionEvent event, const std::string &error)=0
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
unsigned int ContextRequestToken
Alias for the token used to identify a context request.
Definition: ContextRequestToken.h:23
virtual void sendRuntimeErrorEvent(const aplEventPayload::RuntimeError &payload)=0
std::string PresentationToken
Alias for the token used by APL directives.
Definition: PresentationToken.h:22
virtual void clearExecuteCommands(const PresentationToken &token=std::string(), const bool markAsFailed=true)=0
virtual void onVisualContextAvailable(avsCommon::sdkInterfaces::ContextRequestToken requestToken, const aplEventPayload::VisualContext &visualContext)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void onActiveDocumentChanged(const PresentationToken &token, const PresentationSession &session)=0
MOCK_METHOD3(processRenderDocumentResult, void(const PresentationToken &token, const bool result, const std::string &error))
APLCommandExecutionEvent
Enumeration of APL Command Execution Events that can be reported to the APL capability agent...
Definition: APLCommandExecutionEvent.h:27
MOCK_METHOD1(sendUserEvent, void(const aplEventPayload::UserEvent &payload))
virtual void processRenderDocumentResult(const PresentationToken &token, const bool result, const std::string &error)=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