AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockEndpointBuilder.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_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_ENDPOINTS_MOCKENDPOINTBUILDER_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_ENDPOINTS_MOCKENDPOINTBUILDER_H_
18 
19 #include <gmock/gmock.h>
20 
22 
23 namespace alexaClientSDK {
24 namespace avsCommon {
25 namespace sdkInterfaces {
26 namespace endpoints {
27 namespace test {
28 
31 public:
40  MOCK_METHOD1(withDisplayCategory, EndpointBuilderInterface&(const std::vector<std::string>& displayCategories));
44  const std::string& manufacturer,
45  const std::string& model,
46  const std::string& serialNumber,
47  const std::string& firmwareVersion,
48  const std::string& softwareVersion,
49  const std::string& customIdentifier));
52  EndpointBuilderInterface&(const std::vector<std::map<std::string, std::string>>& connections));
53  MOCK_METHOD1(withCookies, EndpointBuilderInterface&(const std::map<std::string, std::string>& cookies));
57  std::shared_ptr<avsCommon::sdkInterfaces::powerController::PowerControllerInterface> powerController,
58  bool isProactivelyReported,
59  bool isRetrievable));
63  std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface> toggleController,
64  const std::string& instance,
66  bool isProactivelyReported,
67  bool isRetrievable,
68  bool isNonControllable));
72  std::shared_ptr<avsCommon::sdkInterfaces::modeController::ModeControllerInterface> modeController,
73  const std::string& instance,
75  bool isProactivelyReported,
76  bool isRetrievable,
77  bool isNonControllable));
81  std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerInterface> rangeController,
82  const std::string& instance,
84  bool isProactivelyReported,
85  bool isRetrievable,
86  bool isNonControllable));
90  const std::shared_ptr<avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesBuilderInterface>&));
91  MOCK_METHOD0(build, std::unique_ptr<EndpointInterface>());
98  const avs::CapabilityConfiguration& configuration,
99  std::shared_ptr<DirectiveHandlerInterface> directiveHandler));
100  MOCK_METHOD2(
103  const std::shared_ptr<avsCommon::sdkInterfaces::CapabilityConfigurationInterface>& configurationInterface,
104  std::shared_ptr<DirectiveHandlerInterface> directiveHandler));
105  MOCK_METHOD1(
108  const std::shared_ptr<avsCommon::sdkInterfaces::CapabilityConfigurationInterface>& configurationInterface));
110 };
111 
112 } // namespace test
113 } // namespace endpoints
114 } // namespace sdkInterfaces
115 } // namespace avsCommon
116 } // namespace alexaClientSDK
117 
118 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_ENDPOINTS_MOCKENDPOINTBUILDER_H_
virtual EndpointBuilderInterface & withCookies(const std::map< std::string, std::string > &cookies)=0
MOCK_METHOD3(withPowerController, EndpointBuilderInterface &(std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerInterface > powerController, bool isProactivelyReported, bool isRetrievable))
virtual EndpointBuilderInterface & withAdditionalAttributes(const std::string &manufacturer, const std::string &model, const std::string &serialNumber, const std::string &firmwareVersion, const std::string &softwareVersion, const std::string &customIdentifier)=0
virtual EndpointBuilderInterface & withManufacturerName(const std::string &manufacturerName)=0
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
MOCK_METHOD0(withDeviceRegistration, EndpointBuilderInterface &())
Mocks an endpoint builder.
Definition: MockEndpointBuilder.h:30
virtual EndpointCapabilitiesRegistrarInterface & withCapability(const avs::CapabilityConfiguration &configuration, std::shared_ptr< DirectiveHandlerInterface > directiveHandler)=0
virtual EndpointBuilderInterface & withDescription(const std::string &description)=0
virtual EndpointCapabilitiesRegistrarInterface & withCapabilityConfiguration(const std::shared_ptr< avsCommon::sdkInterfaces::CapabilityConfigurationInterface > &configurationInterface)=0
MOCK_METHOD6(withAdditionalAttributes, EndpointBuilderInterface &(const std::string &manufacturer, const std::string &model, const std::string &serialNumber, const std::string &firmwareVersion, const std::string &softwareVersion, const std::string &customIdentifier))
virtual EndpointBuilderInterface & withToggleController(std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface > toggleController, const std::string &instance, const avsCommon::sdkInterfaces::toggleController::ToggleControllerAttributes &toggleControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0
MOCK_METHOD2(withCapability, EndpointCapabilitiesRegistrarInterface &(const avs::CapabilityConfiguration &configuration, std::shared_ptr< DirectiveHandlerInterface > directiveHandler))
virtual EndpointBuilderInterface & withPowerController(std::shared_ptr< avsCommon::sdkInterfaces::powerController::PowerControllerInterface > powerController, bool isProactivelyReported, bool isRetrievable)=0
MOCK_METHOD1(withDerivedEndpointId, EndpointBuilderInterface &(const std::string &suffix))
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual EndpointBuilderInterface & withFriendlyName(const std::string &friendlyName)=0
virtual EndpointBuilderInterface & withEndpointCapabilitiesBuilder(const std::shared_ptr< avsCommon::sdkInterfaces::endpoints::EndpointCapabilitiesBuilderInterface > &endpointCapabilitiesBuilder)=0
virtual EndpointBuilderInterface & withDisplayCategory(const std::vector< std::string > &displayCategories)=0
virtual EndpointBuilderInterface & withModeController(std::shared_ptr< avsCommon::sdkInterfaces::modeController::ModeControllerInterface > modeController, const std::string &instance, const avsCommon::sdkInterfaces::modeController::ModeControllerAttributes &modeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=0
std::string EndpointIdentifier
Definition: EndpointIdentifier.h:38
Definition: CapabilityConfiguration.h:42
virtual EndpointBuilderInterface & withDerivedEndpointId(const std::string &suffix)=0
virtual EndpointBuilderInterface & withEndpointId(const EndpointIdentifier &endpointId)=0
virtual EndpointBuilderInterface & withConnections(const std::vector< std::map< std::string, std::string >> &connections)=0
virtual EndpointBuilderInterface & withRangeController(std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerInterface > rangeController, const std::string &instance, const avsCommon::sdkInterfaces::rangeController::RangeControllerAttributes &rangeControllerAttributes, bool isProactivelyReported, bool isRetrievable, bool isNonControllable=false)=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