AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
SettingsManagerTest.cpp File Reference
#include <memory>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/Utils/WaitEvent.h>
#include <RegistrationManager/MockCustomerDataManager.h>
#include "Settings/DeviceSettingsManager.h"
#include "Settings/MockSetting.h"
#include "Settings/SettingsManager.h"
#include "Settings/SettingObserverInterface.h"
Include dependency graph for SettingsManagerTest.cpp:

Classes

class  alexaClientSDK::settings::test::SettingStub< SettingT >
 Settings stub that just set the value immediately. More...
 
class  alexaClientSDK::settings::test::TestObserver< SettingT >
 Just an empty observer. More...
 
class  alexaClientSDK::settings::test::SettingsManagerTest
 Test class. More...
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::settings
 
 alexaClientSDK::settings::test
 

Typedefs

using alexaClientSDK::settings::test::SettingInt = SettingStub< int >
 
using alexaClientSDK::settings::test::SettingString = SettingStub< std::string >
 
using alexaClientSDK::settings::test::SettingBool = MockSetting< bool >
 

Enumerations

enum  alexaClientSDK::settings::test::TestSettingId { alexaClientSDK::settings::test::TEST_ID_INT = 0, alexaClientSDK::settings::test::TEST_ID_STRING, alexaClientSDK::settings::test::TEST_ID_CHAR }
 

Functions

static const std::chrono::seconds alexaClientSDK::settings::test::TEST_TIMEOUT (10)
 General timeout for tests to fail. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_setExistingSetting)
 Test add settings and setting the setting value. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_setSettingUnavailable)
 Test set value for setting that hasn't been registered. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_getExistingSetting)
 Test get value for setting that hasn't been registered. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_getSettingUnavailable)
 Test get value for setting that hasn't been registered. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_addExistingSetting)
 Test registering a setting that already exists. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_addObserver)
 Test addObserver for a setting that exists. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_addObserverFailed)
 Test addObserver for a setting that doesn't exist. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_removeObserver)
 Test addObserver for a setting that exists. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_removeObserverFailed)
 Test addObserver for a setting that doesn't exist. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_setExistingStringSetting)
 Test manager operations for string setting. More...
 
 alexaClientSDK::settings::test::TEST_F (SettingsManagerTest, test_clearDataInSettingManagerCallsClearDataInSetting)
 Test manager getting a clearData callback will call clearData on the setting. More...
 

Variables

constexpr int alexaClientSDK::settings::test::INITIAL_INT_VALUE = 20
 
constexpr int alexaClientSDK::settings::test::NEW_INT_VALUE = -20
 
constexpr int alexaClientSDK::settings::test::DEFAULT_INT_VALUE = 0
 
constexpr char alexaClientSDK::settings::test::DEFAULT_CHAR_VALUE = 'a'
 

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