AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockDiscoveryEventSender.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_CAPABILITIESDELEGATE_TEST_MOCKDISCOVERYEVENTSENDER_H_
17 #define ALEXA_CLIENT_SDK_CAPABILITIESDELEGATE_TEST_MOCKDISCOVERYEVENTSENDER_H_
18 
20 
21 namespace alexaClientSDK {
22 namespace capabilitiesDelegate {
23 namespace test {
24 
29 public:
30  MOCK_METHOD0(stop, void());
31  MOCK_METHOD1(sendDiscoveryEvents, bool(const std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface>&));
32  MOCK_METHOD1(addDiscoveryStatusObserver, void(const std::shared_ptr<DiscoveryStatusObserverInterface>&));
33  MOCK_METHOD1(removeDiscoveryStatusObserver, void(const std::shared_ptr<DiscoveryStatusObserverInterface>&));
36 };
37 
38 } // namespace test
39 } // namespace capabilitiesDelegate
40 } // namespace alexaClientSDK
41 
42 #endif // ALEXA_CLIENT_SDK_CAPABILITIESDELEGATE_TEST_MOCKDISCOVERYEVENTSENDER_H_
Definition: DiscoveryEventSenderInterface.h:29
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
MOCK_METHOD2(onAuthStateChange, void(AuthObserverInterface::State, AuthObserverInterface::Error))
State
The enum State describes the state of authorization.
Definition: AuthObserverInterface.h:34
virtual void onAuthStateChange(State newState, Error error)=0
MOCK_METHOD1(sendDiscoveryEvents, bool(const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &))
virtual void addDiscoveryStatusObserver(const std::shared_ptr< DiscoveryStatusObserverInterface > &observer)=0
virtual bool sendDiscoveryEvents(const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &messageSender)=0
Error
The enum Error encodes possible errors which may occur when changing state.
Definition: AuthObserverInterface.h:48
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void removeDiscoveryStatusObserver(const std::shared_ptr< DiscoveryStatusObserverInterface > &observer)=0
virtual void onAlexaEventProcessedReceived(const std::string &eventCorrelationToken)=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