AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockDirectiveSequencer.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_ADSL_TEST_ADSL_MOCKDIRECTIVESEQUENCER_H_
17 #define ALEXA_CLIENT_SDK_ADSL_TEST_ADSL_MOCKDIRECTIVESEQUENCER_H_
18 
21 #include <gmock/gmock.h>
22 #include <memory>
23 #include <string>
24 
25 namespace alexaClientSDK {
26 namespace adsl {
27 namespace test {
28 
33 public:
35 
36  MOCK_METHOD0(doShutdown, void());
37 
40  bool(std::shared_ptr<avsCommon::sdkInterfaces::DirectiveHandlerInterface> handler));
41 
44  bool(std::shared_ptr<avsCommon::sdkInterfaces::DirectiveHandlerInterface> handler));
45 
46  inline void setDialogRequestId(const std::string& dialogRequestId) {
47  m_dialogRequestId = dialogRequestId;
48  };
49 
51  return m_dialogRequestId;
52  };
53 
54  MOCK_METHOD1(onDirective, bool(std::shared_ptr<avsCommon::avs::AVSDirective> directive));
55 
56  MOCK_METHOD0(disable, void());
57 
58  MOCK_METHOD0(enable, void());
59 
61 };
62 
64  avsCommon::sdkInterfaces::DirectiveSequencerInterface{"MockDirectiveSequencer"} {
65 }
66 
67 } // namespace test
68 } // namespace adsl
69 } // namespace alexaClientSDK
70 
71 #endif // ALEXA_CLIENT_SDK_ADSL_TEST_ADSL_MOCKDIRECTIVESEQUENCER_H_
Definition: MockDirectiveSequencer.h:32
virtual bool addDirectiveHandler(std::shared_ptr< DirectiveHandlerInterface > handler)=0
void setDialogRequestId(const std::string &dialogRequestId)
Definition: MockDirectiveSequencer.h:46
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
std::string m_dialogRequestId
Definition: MockDirectiveSequencer.h:60
std::string getDialogRequestId()
Definition: MockDirectiveSequencer.h:50
virtual bool removeDirectiveHandler(std::shared_ptr< DirectiveHandlerInterface > handler)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
MockDirectiveSequencer()
Definition: MockDirectiveSequencer.h:63
MOCK_METHOD1(addDirectiveHandler, bool(std::shared_ptr< avsCommon::sdkInterfaces::DirectiveHandlerInterface > handler))
virtual bool onDirective(std::shared_ptr< avsCommon::avs::AVSDirective > directive)=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