AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockAPLDocumentObserver.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_MOCKAPLDOCUMENTOBSERVER_H_
16 #define ACSDK_APLCAPABILITYCOMMONINTERFACES_MOCKAPLDOCUMENTOBSERVER_H_
17 
18 #include <gmock/gmock.h>
19 
22 
23 namespace alexaClientSDK {
24 namespace aplCapabilityCommonInterfaces {
25 namespace test {
26 
31 public:
33  onAPLDocumentSessionAvailableTest,
34  void(
35  const PresentationSession& presentationSession,
36  const PresentationToken& token,
37  APLDocumentSessionInterface* session));
39  const PresentationSession& presentationSession,
40  const PresentationToken& token,
41  std::unique_ptr<APLDocumentSessionInterface>&& session) {
42  onAPLDocumentSessionAvailableTest(presentationSession, token, session.get());
43  }
47  void(
48  const PresentationToken& token,
52  void(
53  const PresentationToken& token,
54  bool result,
55  const std::string& error,
56  const std::chrono::steady_clock::time_point& timestamp));
59  void(const PresentationToken& token, APLCommandExecutionEvent result, const std::string& error));
62  void(const PresentationToken& token, bool result, const std::string& error));
65  void(
67  const aplEventPayload::VisualContext& context));
75  void(const PresentationToken& token, const avsCommon::sdkInterfaces::GUIActivityEvent& event));
76 };
77 
78 } // namespace test
79 } // namespace aplCapabilityCommonInterfaces
80 } // namespace alexaClientSDK
81 
82 #endif // ACSDK_APLCAPABILITYCOMMONINTERFACES_MOCKAPLDOCUMENTOBSERVER_H_
void onAPLDocumentSessionAvailable(const PresentationSession &presentationSession, const PresentationToken &token, std::unique_ptr< APLDocumentSessionInterface > &&session)
Definition: MockAPLDocumentObserver.h:38
MOCK_METHOD2(onActiveDocumentChanged, void(const PresentationToken &token, const alexaClientSDK::aplCapabilityCommonInterfaces::PresentationSession &session))
MOCK_METHOD3(onAPLDocumentSessionAvailableTest, void(const PresentationSession &presentationSession, const PresentationToken &token, APLDocumentSessionInterface *session))
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
virtual void onDataSourceFetch(const aplEventPayload::DataSourceFetch &payload)=0
unsigned int ContextRequestToken
Alias for the token used to identify a context request.
Definition: ContextRequestToken.h:23
virtual void onRuntimeError(const aplEventPayload::RuntimeError &payload)=0
MOCK_METHOD4(onRenderDocumentComplete, void(const PresentationToken &token, bool result, const std::string &error, const std::chrono::steady_clock::time_point &timestamp))
virtual void onSessionEnded(const PresentationSession &presentationSession)=0
MOCK_METHOD1(onDocumentFinished, void(const PresentationToken &token))
std::string PresentationToken
Alias for the token used by APL directives.
Definition: PresentationToken.h:22
virtual void onDocumentFinished(const PresentationToken &token)=0
virtual void onActiveDocumentChanged(const PresentationToken &token, const PresentationSession &session)=0
virtual void onActivityEvent(const PresentationToken &token, const avsCommon::sdkInterfaces::GUIActivityEvent &event)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
GUIActivityEvent
Enumeration of activity events used to indicate the state of a GUI.
Definition: GUIActivityEvent.h:27
virtual void onDataSourceUpdateComplete(const PresentationToken &token, bool result, const std::string &error)=0
virtual void onCommandExecutionComplete(const PresentationToken &token, APLCommandExecutionEvent result, const std::string &error)=0
virtual void onRenderDocumentComplete(const PresentationToken &token, bool result, const std::string &error, const std::chrono::steady_clock::time_point &timestamp)=0
APLCommandExecutionEvent
Enumeration of APL Command Execution Events that can be reported to the APL capability agent...
Definition: APLCommandExecutionEvent.h:27
virtual void onVisualContextAvailable(const avsCommon::sdkInterfaces::ContextRequestToken requestToken, const aplEventPayload::VisualContext &context)=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