AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Protected Member Functions | Protected Attributes | List of all members
alexaClientSDK::settings::test::LocaleWakeWordsSettingTest Class Reference
Inheritance diagram for alexaClientSDK::settings::test::LocaleWakeWordsSettingTest:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::settings::test::LocaleWakeWordsSettingTest:
Collaboration graph
[legend]

Protected Member Functions

void SetUp () override
 
std::string toJson (std::set< std::string > values) const
 
void initializeSetting (const LocalesSetting::ValueType &locale, const WakeWordsSetting::ValueType wakeWords)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 

Protected Attributes

std::shared_ptr< MockSettingEventSenderm_wakeWordsSenderMock
 Mock event sender for wake words. More...
 
std::shared_ptr< MockSettingEventSenderm_localesSenderMock
 Mock event sender for locales. More...
 
std::shared_ptr< MockDeviceSettingStoragem_storageMock
 Mock setting storage. More...
 
std::shared_ptr< MockLocaleAssetsManagerm_assetsManagerMock
 Mock locale assets manager. More...
 
std::shared_ptr< MockSettingObserver< LocalesSetting > > m_localeObserver
 Mock locale setting observer. More...
 
std::shared_ptr< MockSettingObserver< WakeWordsSetting > > m_wakeWordsObserver
 Mock wake words setting observer. More...
 
std::shared_ptr< LocaleWakeWordsSettingm_setting
 The class under test. More...
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

The test class.

Member Function Documentation

◆ initializeSetting()

void alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::initializeSetting ( const LocalesSetting::ValueType locale,
const WakeWordsSetting::ValueType  wakeWords 
)
protected

Function used to create and initialize the setting with the given values. Function will also add the observers.

This function asserts that the object is created successfully.

Parameters
localeThe initial value for locale.
wakeWordsThe initial value for wakeWords.

◆ SetUp()

void alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::SetUp ( )
overrideprotectedvirtual

Create protocol object and dependencies mocks.

Reimplemented from testing::Test.

◆ toJson()

std::string alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::toJson ( std::set< std::string >  values) const
protected

Function to generate the json representation of wake words and locales.

Parameters
valuesThe values to be converted to a json string array.
Returns
A string representing the json string array.

Member Data Documentation

◆ m_assetsManagerMock

std::shared_ptr<MockLocaleAssetsManager> alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::m_assetsManagerMock
protected

Mock locale assets manager.

◆ m_localeObserver

std::shared_ptr<MockSettingObserver<LocalesSetting> > alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::m_localeObserver
protected

Mock locale setting observer.

◆ m_localesSenderMock

std::shared_ptr<MockSettingEventSender> alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::m_localesSenderMock
protected

Mock event sender for locales.

◆ m_setting

std::shared_ptr<LocaleWakeWordsSetting> alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::m_setting
protected

The class under test.

◆ m_storageMock

std::shared_ptr<MockDeviceSettingStorage> alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::m_storageMock
protected

Mock setting storage.

◆ m_wakeWordsObserver

std::shared_ptr<MockSettingObserver<WakeWordsSetting> > alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::m_wakeWordsObserver
protected

Mock wake words setting observer.

◆ m_wakeWordsSenderMock

std::shared_ptr<MockSettingEventSender> alexaClientSDK::settings::test::LocaleWakeWordsSettingTest::m_wakeWordsSenderMock
protected

Mock event sender for wake words.


The documentation for this class was generated from the following file:

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