AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
SDKConfigEqualizerConfigurationTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <list>
#include <memory>
#include <AVSCommon/Utils/Configuration/ConfigurationNode.h>
#include "acsdkEqualizerImplementations/SDKConfigEqualizerConfiguration.h"
Include dependency graph for SDKConfigEqualizerConfigurationTest.cpp:

Classes

class  alexaClientSDK::acsdkEqualizer::test::SDKConfigEqualizerConfigurationTest
 

Namespaces

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

Typedefs

using alexaClientSDK::acsdkEqualizer::test::JSONStream = std::vector< std::shared_ptr< std::istream > >
 Alias for JSON stream type used in ConfigurationNode initialization. More...
 

Functions

static ConfigurationNode alexaClientSDK::acsdkEqualizer::test::generateConfigFromJSON (std::string json)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_providedEmptyConfig_shouldSucceed)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_providedEmptyConfig_shouldUseDefaultConfig)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_providedLimitedBandsDefined_shouldSucceed)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_providedLimitedBandsOneMissing_shouldSucceed)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_havingEmptyBandList_shouldUseHardDefaults)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_havingOnlyInvalidBand_shouldSucceedAndSupportNone)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_oneModeDefinedAndEnabled_shouldPutOthersToDefaults)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_oneModeDefinedAndDisabled_shouldPutOthersToDefaults)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_givenEmptyDefaultStateBranchEmpty_shouldUseHardDefaults)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_givenSupportedDefaultMode_shouldSucceed)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_givenUnsupportedDefaultMode_shouldFail)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_havingNotAllBandsInDefaultState_shouldFail)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (SDKConfigEqualizerConfigurationTest, test_havingNoBandsDefinedInDefaultStateWithNoBandsSupported_shouldSucceed)
 

Variables

const std::string alexaClientSDK::acsdkEqualizer::test::JSON_LIMITED_BANDS = R"({"bands":{"BASS":false, "MIDRANGE":false, "TREBLE":true}})"
 JSON configuration with all bands defined, but not all supported. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_LIMITED_BANDS_ONE_MISSING = R"({"bands":{"BASS":false, "MIDRANGE":false}})"
 JSON configuration with a limited set of bands defined. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_NO_BANDS_PROVIDED = R"({"bands":{}})"
 JSON configuration with a an empty supported bands branch. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_INVALID_BAND = R"({"bands":{"DEEPBASS":true}})"
 JSON configuration with a an invalid band listed as supported. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_ONE_MODE_MENTIONED_ENABLED = R"({"modes":{"NIGHT": true}})"
 JSON configuration with a one mode defined and supported. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_ONE_MODE_MENTIONED_DISABLED = R"({"modes":{"NIGHT": false}})"
 JSON configuration with a one mode defined but unsupported. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_EMPTY_DEFAULT_STATE_BRANCH = R"({"defaultState":{}})"
 JSON configuration with an empty default state branch. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_DEFAULT_MODE_SUPPORTED = R"({"modes": {"NIGHT":true}, "defaultState":{"mode":"NIGHT"}})"
 JSON configuration with a default supported mode provided. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_DEFAULT_MODE_UNSUPPORTED = R"({"defaultState":{"mode":"NIGHT"}})"
 JSON configuration with a default unsupported mode provided. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_DEFAULT_STATE_MISSING_BANDS = R"({"defaultState":{"bands":{"BASS": 1}}})"
 JSON configuration with a missing band levels in default state. More...
 
const std::string alexaClientSDK::acsdkEqualizer::test::JSON_DEFAULT_STATE_BANDS_EMPTY_NO_BANDS_SUPPORTED
 JSON configuration with all band defined but unsupported and empty bands branch in default state.s. 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