AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
EqualizerLinearBandMapperTest.cpp File Reference
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <functional>
#include <memory>
#include <acsdkEqualizerInterfaces/EqualizerTypes.h>
#include "acsdkEqualizerImplementations/EqualizerLinearBandMapper.h"
Include dependency graph for EqualizerLinearBandMapperTest.cpp:

Classes

class  alexaClientSDK::acsdkEqualizer::test::EqualizerLinearBandMapperTest
 

Namespaces

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

Functions

 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenValidParameters_create_shouldSucceed)
 Valid parameters. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenInvalidParameters_create_shouldFail)
 Invalid parameters. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenSameAsAVSBands_map_shouldNotModifyLevels)
 Test mapping AVS bands to the same number of bands. No value must be modified. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenMoreBandsToMapTo_mapAllSameNonZero_shouldMapToSame)
 AVS bands < target bands. Mapping non-zero value. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenMoreBandsToMapTo_mapAllSameZero_shouldMapToSame)
 AVS bands < target bands. Mapping zero value. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenDoubleBandsToMapTo_mapAllSameNonZero_shouldMapToSame)
 AVS bands * 2 = target bands. Mapping non-zero value. No averaged bands. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenDoubleBandsToMapTo_mapAllSameZero_shouldMapToSame)
 AVS bands * 2 = target bands. Mapping zero value. No averaged bands. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenLessBandsToMapTo_mapAllSameNonZero_shouldMapToSame)
 AVS bands > target bands. Mapping non-zero value. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenLessBandsToMapTo_mapAllSameZero_shouldMapToSame)
 AVS bands > target bands. Mapping zero value. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenOneBandToMapTo_mapNonZero_shouldMapToSame)
 Mapping AVS bands to 1 target band. Non-zero value. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenOneBandToMapTo_mapZero_shouldMapToSame)
 Mapping AVS bands to 1 target band. Zero value. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenAnyNumberOfBands_map_shouldKeepAverageLevel)
 Since mapper has a linear nature mapped values must keep the same average as original ones. Testing this here. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenMoreBandsToMapTo_mapSpecificValues_shouldMapToSpecificOutput)
 Test specific transformation. This test depends on current number of bands supported by AVS. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenEvenMoreBandsToMapTo_mapSpecificValues_shouldMapToSpecificOutput)
 Test specific transformation. This test depends on current number of bands supported by AVS. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenLessBandsToMapTo_mapSpecificValues_shouldMapToSpecificOutput)
 Test specific transformation. This test depends on current number of bands supported by AVS. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenEvenLessBandsToMapTo_mapSpecificValues_shouldMapToSpecificOutput)
 Test specific transformation. This test depends on current number of bands supported by AVS. More...
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenOneBandSupported_mapToOneBand_shouldMapSameValue)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenOneBandSupported_mapToTwoBands_shouldMapToBothSame)
 
 alexaClientSDK::acsdkEqualizer::test::TEST_F (EqualizerLinearBandMapperTest, test_givenTwoBandsSupported_mapToOneBands_shouldMapToAverage)
 

Variables

static constexpr int alexaClientSDK::acsdkEqualizer::test::VALID_NUMBER_OF_BANDS = 3
 Valid number of output bands. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::INVALID_NUMBER_OF_BANDS_BELOW = 0
 Invalid number of output bands, below lower bound. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::INVALID_NUMBER_OF_BANDS_ABOVE = 999999
 Invalid number of output bands, above higher bound. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::BAND_LEVEL_TOP = 10
 Band level representing high value. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::BAND_LEVEL_BOTTOM = -10
 Band level representing low value. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::BAND_LEVEL_ZERO = 0
 Band level representing no equalization. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::BAND_LEVEL_AVERAGE = (BAND_LEVEL_TOP + BAND_LEVEL_BOTTOM + BAND_LEVEL_ZERO) / 3
 Band level representing average of top, bottom and zero levels. More...
 
static constexpr int alexaClientSDK::acsdkEqualizer::test::CURRENT_NUMBER_OF_AVS_BANDS = 3
 

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