AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
EqualizerControllerTest.cpp File Reference
#include <gtest/gtest.h>
#include <functional>
#include <memory>
#include <acsdkEqualizerInterfaces/EqualizerConfigurationInterface.h>
#include <acsdkEqualizerInterfaces/MockEqualizerControllerListenerInterface.h>
#include <acsdkEqualizerInterfaces/MockEqualizerInterface.h>
#include <acsdkEqualizerInterfaces/MockEqualizerModeControllerInterface.h>
#include <acsdkEqualizerInterfaces/MockEqualizerStorageInterface.h>
#include <AVSCommon/Utils/Error/SuccessResult.h>
#include "acsdkEqualizerImplementations/EqualizerController.h"
#include "acsdkEqualizerImplementations/InMemoryEqualizerConfiguration.h"
Include dependency graph for EqualizerControllerTest.cpp:

Classes

class  alexaClientSDK::acsdkEqualizer::test::EqualizerControllerTest
 

Namespaces

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

Functions

 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_providedEmptyConfig_shouldUseDefaults)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_changeBandLevels_shouldSucceed)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_setInvalidBandLevels_shouldClampToSupportedRange)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_setMode_shouldSucceed)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_setInvalidMode_shouldNotChangeMode)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_providedBandLevelChanges_addRemoveListener_shouldFollowSubscriptionStatus)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_providedModeChanges_addRemoveListener_shouldFollowSubscriptionStatus)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_providedBandLevelChanges_addRemoveMultipleListeners_shouldFollowSubscriptionStatus)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_triggerChangesMultipleTimes_ExpectListenersNotifiedSameTimes)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_providedBandLevelChanges_addRemoveSingleEqualizer_shouldFollowRegistrationStatus)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_providedBandLevelChanges_addRemoveMultipleEqualizers_shouldFollowRegistrationStatus)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_triggerChangesMultipleTimes_ExpectEqualizersCalledSameTimes)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_saveLoadStateWithPersistentStorage_shouldSucceed)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_setLevelBelowEqualizerMinimum_shouldClamp)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerControllerTest, test_setLevelAboveEqualizerMaximum_shouldClamp)
 

Variables

static constexpr int alexaClientSDK::acsdkEqualizer::test::MIN_LEVEL = -10
 Band level used as minimum value in tests. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::MAX_LEVEL = 10
 Band level used as maximum value in tests. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::BELOW_MIN_LEVEL = -11
 Band level below the minimum allowed. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::ABOVE_MAX_LEVEL = 11
 Band level above the maximum allowed. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::DEFAULT_LEVEL = 0
 Band level used as a default. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::DEFAULT_ADJUST_DELTA = 1
 Default value to adjust band level. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::DEFAULT_MIDRANGE = DEFAULT_LEVEL
 A sample default band level for MIDRANGE band. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::NON_DEFAULT_MIDRANGE = 4
 A sample band level for MIDRANGE band different from default. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::DEFAULT_TREBLE = 5
 A sample default band level for TREBLE band. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::NON_DEFAULT_TREBLE = -5
 A sample band level for TREBLE band different from default. More...
 
static constexpr EqualizerMode alexaClientSDK::acsdkEqualizer::test::DEFAULT_MODE = EqualizerMode::NONE
 A sample default mode. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::STABILITY_CHECK_ITERATIONS = 100
 Number of times to perform an operation to make sure that it provides consistent results. More...
 

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