Capability Agent unit tests.
More...
Capability Agent unit tests.
- See also
- alexaClientSDK::speakerManager
-
alexaClientSDK::speakerManager::test
Configuration without speaker manager root.
◆ SetUp()
void alexaClientSDK::speakerManager::test::SpeakerManagerTest::SetUp |
( |
| ) |
|
SetUp before each test.
Test fixture for SpeakerManager.
◆ TIMEOUT()
static std::chrono::milliseconds alexaClientSDK::speakerManager::test::TIMEOUT |
( |
1000 |
| ) |
|
|
static |
Timeout when waiting for futures to be set.
◆ JSON_PAYLOAD
const std::string alexaClientSDK::speakerManager::test::JSON_PAYLOAD |
|
static |
Initial value:=
""
"{"
" \"speakerChannelState\": {"
" \"channelVolume\": 10,"
" \"channelMuteStatus\": false"
" },"
" \"alertsChannelState\": {"
" \"channelVolume\": 15,"
" \"channelMuteStatus\": true"
" }"
"}"
The MessageId
identifer.
◆ JSON_TEST_CONFIG
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG |
|
static |
Initial value:= R"(
{
"speakerManagerCapabilityAgent": {
"persistentStorage": true,
"minUnmuteVolume": 3,
"defaultSpeakerVolume": 5,
"defaultAlertsVolume": 6,
"restoreMuteState": true
}
}
)"
Full configuration.
◆ JSON_TEST_CONFIG_DEFAULT_ALERTS_VOLUME
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG_DEFAULT_ALERTS_VOLUME |
|
static |
Initial value:= R"(
{
"speakerManagerCapabilityAgent": {
"defaultAlertsVolume": 6
}
})"
Configuration with speaker manager root with defaultAlertsVolume.
◆ JSON_TEST_CONFIG_DEFAULT_SPEAKER_VOLUME
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG_DEFAULT_SPEAKER_VOLUME |
|
static |
Initial value:= R"(
{
"speakerManagerCapabilityAgent": {
"defaultSpeakerVolume": 5
}
})"
Configuration with speaker manager root with defaultSpeakerVolume.
◆ JSON_TEST_CONFIG_EMPTY
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG_EMPTY |
|
static |
Initial value:= R"(
{
"speakerManagerCapabilityAgent": {}
})"
Configuration with speaker manager root but without entries.
◆ JSON_TEST_CONFIG_MIN_UNMUTE_VOLUME
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG_MIN_UNMUTE_VOLUME |
|
static |
Initial value:= R"(
{
"speakerManagerCapabilityAgent": {
"minUnmuteVolume": 3
}
})"
Configuration with speaker manager root with minUnmuteVolume.
◆ JSON_TEST_CONFIG_MISSING
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG_MISSING |
|
static |
◆ JSON_TEST_CONFIG_PERSISTENT_STORAGE
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG_PERSISTENT_STORAGE |
|
static |
Initial value:= R"(
{
"speakerManagerCapabilityAgent": {
"persistentStorage": true
}
})"
Configuration with speaker manager root with persistentStorage.
◆ JSON_TEST_CONFIG_RESTORE_MUTE_STATE
const auto alexaClientSDK::speakerManager::test::JSON_TEST_CONFIG_RESTORE_MUTE_STATE |
|
static |
Initial value:= R"(
{
"speakerManagerCapabilityAgent": {
"restoreMuteState": false
}
})"
Configuration with speaker manager root with defaultAlertsVolume.
◆ MESSAGE_ID
const auto alexaClientSDK::speakerManager::test::MESSAGE_ID = "messageId" |
|
static |
◆ MUTE_PAYLOAD
const auto alexaClientSDK::speakerManager::test::MUTE_PAYLOAD |
|
static |
Initial value:
A SetMute
payload.
◆ UNMUTE_PAYLOAD
const auto alexaClientSDK::speakerManager::test::UNMUTE_PAYLOAD |
|
static |
Initial value:
A SetMute
payload to unmute.
◆ VALID_VOLUME_ADJUSTMENT
const int8_t alexaClientSDK::speakerManager::test::VALID_VOLUME_ADJUSTMENT = 10 |
|
static |
A valid delta to adjust the volume.
◆ VOLUME_PAYLOAD
const auto alexaClientSDK::speakerManager::test::VOLUME_PAYLOAD |
|
static |
Initial value:
A SetVolume/AdjustVolume
payload.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0