AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockLocaleAssetsManager.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_MOCKLOCALEASSETSMANAGER_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKLOCALEASSETSMANAGER_H_
18 
19 #include <gmock/gmock.h>
20 
22 
23 namespace alexaClientSDK {
24 namespace avsCommon {
25 namespace sdkInterfaces {
26 namespace test {
27 
32 public:
33  MOCK_METHOD2(changeAssets, bool(const Locales& locale, const WakeWords& wakeWords));
35  MOCK_METHOD1(addLocaleAssetsObserver, void(const std::shared_ptr<LocaleAssetsObserverInterface>& observer));
36  MOCK_METHOD1(removeLocaleAssetsObserver, void(const std::shared_ptr<LocaleAssetsObserverInterface>& observer));
40  void(const std::shared_ptr<endpoints::EndpointRegistrationManagerInterface>& manager));
42  MOCK_CONST_METHOD0(getLanguageSpecificWakeWords, std::map<LanguageTag, WakeWordsSets>());
43  MOCK_CONST_METHOD0(getLocaleSpecificWakeWords, std::map<Locale, WakeWordsSets>());
45  MOCK_CONST_METHOD0(getSupportedLocales, std::set<Locale>());
48 };
49 
50 } // namespace test
51 } // namespace sdkInterfaces
52 } // namespace avsCommon
53 } // namespace alexaClientSDK
54 
55 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_MOCKLOCALEASSETSMANAGER_H_
virtual bool changeAssets(const Locales &locales, const WakeWords &wakeWords)=0
virtual void setEndpointRegistrationManager(const std::shared_ptr< endpoints::EndpointRegistrationManagerInterface > &manager)=0
std::set< Locales > LocaleCombinations
Definition: LocaleAssetsManagerInterface.h:73
std::set< std::string > WakeWords
Definition: LocaleAssetsManagerInterface.h:57
virtual void onConfigurationChanged(const avs::CapabilityConfiguration &configuration)=0
std::vector< Locale > Locales
Definition: LocaleAssetsManagerInterface.h:68
virtual void addLocaleAssetsObserver(const std::shared_ptr< LocaleAssetsObserverInterface > &observer)=0
virtual LocaleCombinations getSupportedLocaleCombinations() const =0
MOCK_METHOD1(addLocaleAssetsObserver, void(const std::shared_ptr< LocaleAssetsObserverInterface > &observer))
virtual std::map< Locale, WakeWordsSets > getLocaleSpecificWakeWords() const =0
std::string Locale
Definition: LocaleAssetsManagerInterface.h:46
MOCK_CONST_METHOD0(getDefaultSupportedWakeWords, WakeWordsSets())
virtual std::map< LanguageTag, WakeWordsSets > getLanguageSpecificWakeWords() const =0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::set< WakeWords > WakeWordsSets
Definition: LocaleAssetsManagerInterface.h:62
virtual void removeLocaleAssetsObserver(const std::shared_ptr< LocaleAssetsObserverInterface > &observer)=0
Definition: CapabilityConfiguration.h:42
MOCK_CONST_METHOD1(getSupportedWakeWords, WakeWordsSets(const Locale &))
MOCK_METHOD2(changeAssets, bool(const Locales &locale, const WakeWords &wakeWords))
virtual WakeWordsSets getSupportedWakeWords(const Locale &locale) const =0

AlexaClientSDK 1.25.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0