AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockPresentationOrchestratorStateTracker.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_AVS_SHARED_PRESENTATIONORCHESTRATOR_PRESENTATIONORCHESTRATORINTERFACES_TEST_ACSDK_PRESENTATIONORCHESTRATORINTERFACES_MOCKPRESENTATIONORCHESTRATORSTATETRACKER_H_
17 #define ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_PRESENTATIONORCHESTRATORINTERFACES_TEST_ACSDK_PRESENTATIONORCHESTRATORINTERFACES_MOCKPRESENTATIONORCHESTRATORSTATETRACKER_H_
18 
19 #include <gmock/gmock.h>
20 
23 
24 namespace alexaClientSDK {
25 namespace presentationOrchestratorInterfaces {
26 namespace test {
27 
33 public:
36  void(
37  const std::string& clientId,
38  const std::string& windowId,
40 
43  void(
44  const std::string& clientId,
45  const std::string& windowId,
47 
48  MOCK_METHOD2(releaseWindow, void(const std::string& clientId, const std::string& windowId));
49 
51 
53 
55 
57 
59  setWindows,
60  void(const std::vector<presentationOrchestratorInterfaces::PresentationOrchestratorWindowInstance>& windows));
61 
63  addWindow,
65 
66  MOCK_METHOD1(removeWindow, void(const std::string& windowId));
67 
71 
74  std::vector<presentationOrchestratorInterfaces::PresentationOrchestratorWindowInfo>());
75 
78  void(std::weak_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorWindowObserverInterface>
79  observer));
80 
83  void(std::weak_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorWindowObserverInterface>
84  observer));
85 
88  void(std::weak_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorStateObserverInterface>
89  observer));
90 
93  void(std::weak_ptr<presentationOrchestratorInterfaces::PresentationOrchestratorStateObserverInterface>
94  obserevr));
95 };
96 
97 } // namespace test
98 } // namespace presentationOrchestratorInterfaces
99 } // namespace alexaClientSDK
100 
101 #endif // ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_PRESENTATIONORCHESTRATORINTERFACES_TEST_ACSDK_PRESENTATIONORCHESTRATORINTERFACES_MOCKPRESENTATIONORCHESTRATORSTATETRACKER_H_
virtual void addWindowObserver(std::weak_ptr< PresentationOrchestratorWindowObserverInterface > observer)=0
MOCK_METHOD2(releaseWindow, void(const std::string &clientId, const std::string &windowId))
MOCK_METHOD3(acquireWindow, void(const std::string &clientId, const std::string &windowId, presentationOrchestratorInterfaces::PresentationMetadata metadata))
virtual bool addWindow(const PresentationOrchestratorWindowInstance &window)=0
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
virtual void updatePresentationMetadata(const std::string &clientId, const std::string &windowId, PresentationMetadata metadata)=0
virtual void releaseWindow(const std::string &clientId, const std::string &windowId)=0
virtual std::vector< PresentationOrchestratorWindowInfo > getWindowInformation()=0
virtual void setWindows(const std::vector< PresentationOrchestratorWindowInstance > &windows)=0
virtual void removeWindowObserver(std::weak_ptr< PresentationOrchestratorWindowObserverInterface > observer)=0
virtual void removeStateObserver(std::weak_ptr< PresentationOrchestratorStateObserverInterface > observer)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void acquireWindow(const std::string &clientId, const std::string &windowId, PresentationMetadata metadata)=0
virtual void updateWindow(const PresentationOrchestratorWindowInstance &window)=0
virtual void addStateObserver(std::weak_ptr< PresentationOrchestratorStateObserverInterface > observer)=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