AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions | Variables
alexaClientSDK::diagnostics::test Namespace Reference

Classes

class  DevicePropertyAggregatorTest
 
class  DeviceProtocolTracerTest
 
class  SettingStub
 Settings stub that just set the value immediately. More...
 

Functions

 TEST_F (DevicePropertyAggregatorTest, test_noContextManager_EmptyOptional)
 
 TEST_F (DevicePropertyAggregatorTest, test_intializePropertyMap)
 
 TEST_F (DevicePropertyAggregatorTest, test_getContextFailure_EmptyOptional)
 
 TEST_F (DevicePropertyAggregatorTest, test_getContextSuccessful)
 
 TEST_F (DevicePropertyAggregatorTest, test_getDoNotDisturbWhenSettingsManagerIsNull)
 
 TEST_F (DevicePropertyAggregatorTest, test_getDoNotDisturbWhenSettingFailed)
 
 TEST_F (DevicePropertyAggregatorTest, test_getDoNotDisturb)
 
 TEST_F (DevicePropertyAggregatorTest, test_getDevicePropertyForInvalidKey_EmptyOptional)
 
 TEST_F (DevicePropertyAggregatorTest, test_getSpeakerSettingsPropertyForNonInitializedVolume_EmptyString)
 
 TEST_F (DevicePropertyAggregatorTest, test_getSpeakerSettingsProperty)
 
 TEST_F (DevicePropertyAggregatorTest, test_getConnectionStatusProperty)
 
 TEST_F (DevicePropertyAggregatorTest, test_getNotificationStatusProperty)
 
 TEST_F (DevicePropertyAggregatorTest, test_getAudioPlayerStatusProperty)
 
 TEST_F (DevicePropertyAggregatorTest, test_getTTSPlayerStateProperty)
 
 TEST_F (DevicePropertyAggregatorTest, test_getAlarmStatusProperty)
 
 TEST_F (DevicePropertyAggregatorTest, test_getRegistationStatusPropertyTrue)
 
 TEST_F (DevicePropertyAggregatorTest, test_getRegistationStatusPropertyFalse)
 
 TEST_F (DeviceProtocolTracerTest, test_ifProtocolTracingIsDisabledByDefault)
 
 TEST_F (DeviceProtocolTracerTest, test_protocolTraceWithTraceFlagDisabled)
 
 TEST_F (DeviceProtocolTracerTest, test_protocolTraceWithTraceFlagEnabled)
 
 TEST_F (DeviceProtocolTracerTest, test_ifProtocolTracingTracesOneMessageByDefault)
 
 TEST_F (DeviceProtocolTracerTest, test_clearTracedMessages)
 
 TEST_F (DeviceProtocolTracerTest, test_maxTracedMessageLimit)
 
 TEST_F (DeviceProtocolTracerTest, test_maxMessagesGettersSetters)
 
 TEST_F (DeviceProtocolTracerTest, test_setMaxMessagesFailsIfSmallerThanStoredMessages)
 

Variables

static const std::string DEFAULT_ALERT_STATE = "IDLE"
 string indicating default alert state. More...
 
static const std::string DEFAULT_CONTENT_ID = "NONE"
 string indicating default audio content id. More...
 
static const std::string DEFAULT_AUDIO_PLAYER_STATE = "IDLE"
 string indicating default audio player state value. More...
 
static const std::string DEVICE_CONTEXT_VALUE = "TEST_DEVICE_CONTEXT"
 string indicating device context value. More...
 
static const ContextRequestToken MOCK_CONTEXT_REQUEST_TOKEN = 1
 Request token used to mock getContext return value. More...
 
static const std::string DO_NOT_DISTURB_DISABLED = "false"
 string indicating device setting do not disturb disabled More...
 
static const std::string DO_NOT_DISTURB_ENABLED = "true"
 string indicating device setting do not disturb enabled More...
 

Function Documentation

◆ TEST_F() [1/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_ifProtocolTracingIsDisabledByDefault   
)

Test if protocol tracing is disabled by default.

◆ TEST_F() [2/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_protocolTraceWithTraceFlagDisabled   
)

Test if the protocol tracer does not return the protocol trace when it's disabled.

◆ TEST_F() [3/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_protocolTraceWithTraceFlagEnabled   
)

Test if the protocol tracer returns the protocol trace when it's enabled.

◆ TEST_F() [4/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_ifProtocolTracingTracesOneMessageByDefault   
)

Test if protocol tracing only traces DEFAULT_MAX_MESSAGES (1) by default.

◆ TEST_F() [5/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_clearTracedMessages   
)

Test if clearTracedMessages clears the traced message list.

◆ TEST_F() [6/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_maxTracedMessageLimit   
)

Test if the protocol tracer abides by the maxMessages configuration.

◆ TEST_F() [7/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_maxMessagesGettersSetters   
)

Test setMaxMessages and getMaxMessages work.

◆ TEST_F() [8/25]

alexaClientSDK::diagnostics::test::TEST_F ( DeviceProtocolTracerTest  ,
test_setMaxMessagesFailsIfSmallerThanStoredMessages   
)

Test setMaxMessages to a smaller amount than currently stored messages fails.

◆ TEST_F() [9/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_noContextManager_EmptyOptional   
)

Test if DEVICE_CONTEXT returns empty Optional if ContextManager was not set.

◆ TEST_F() [10/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_intializePropertyMap   
)

Test if property map is initialized for speaker settings.

◆ TEST_F() [11/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getContextFailure_EmptyOptional   
)

Test if DEVICE_CONTEXT property returns empty Optional when context fetch fails.

◆ TEST_F() [12/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getContextSuccessful   
)

Test if DEVICE_CONTEXT property returns valid value when context fetch succeeds.

◆ TEST_F() [13/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getDoNotDisturbWhenSettingsManagerIsNull   
)

Test if to see if DeviceSettingsManager is null there isn't value for a do not disturb.

◆ TEST_F() [14/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getDoNotDisturbWhenSettingFailed   
)

Test if to see if property map stays the same when setting DoNotDisturb fails

◆ TEST_F() [15/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getDoNotDisturb   
)

Test successful setting and getting doNotDisturb setting

◆ TEST_F() [16/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getDevicePropertyForInvalidKey_EmptyOptional   
)

Test if getDeviceProperty returns empty Optional string.

◆ TEST_F() [17/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getSpeakerSettingsPropertyForNonInitializedVolume_EmptyString   
)

Test retrieving a Speaker property for a non-intializaed volume returns empty string.

◆ TEST_F() [18/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getSpeakerSettingsProperty   
)

Test if get Speaker Settings get updated if the observer method is called.

◆ TEST_F() [19/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getConnectionStatusProperty   
)

Test if Connection status gets updated if the observer method is called.

◆ TEST_F() [20/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getNotificationStatusProperty   
)

Test if Notification status gets updated if the observer method is called.

◆ TEST_F() [21/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getAudioPlayerStatusProperty   
)

Test if the Audio Player Status gets updated if the observer method is called.

◆ TEST_F() [22/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getTTSPlayerStateProperty   
)

Test if the TTS player state gets updated if the observer method is called.

◆ TEST_F() [23/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getAlarmStatusProperty   
)

Test if the Alarm status gets updated if the observer method is called.

◆ TEST_F() [24/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getRegistationStatusPropertyTrue   
)

Test if authorized, registration status is true.

◆ TEST_F() [25/25]

alexaClientSDK::diagnostics::test::TEST_F ( DevicePropertyAggregatorTest  ,
test_getRegistationStatusPropertyFalse   
)

Test if de-authorized, registration status is false.

Variable Documentation

◆ DEFAULT_ALERT_STATE

const std::string alexaClientSDK::diagnostics::test::DEFAULT_ALERT_STATE = "IDLE"
static

string indicating default alert state.

◆ DEFAULT_AUDIO_PLAYER_STATE

const std::string alexaClientSDK::diagnostics::test::DEFAULT_AUDIO_PLAYER_STATE = "IDLE"
static

string indicating default audio player state value.

◆ DEFAULT_CONTENT_ID

const std::string alexaClientSDK::diagnostics::test::DEFAULT_CONTENT_ID = "NONE"
static

string indicating default audio content id.

◆ DEVICE_CONTEXT_VALUE

const std::string alexaClientSDK::diagnostics::test::DEVICE_CONTEXT_VALUE = "TEST_DEVICE_CONTEXT"
static

string indicating device context value.

◆ DO_NOT_DISTURB_DISABLED

const std::string alexaClientSDK::diagnostics::test::DO_NOT_DISTURB_DISABLED = "false"
static

string indicating device setting do not disturb disabled

◆ DO_NOT_DISTURB_ENABLED

const std::string alexaClientSDK::diagnostics::test::DO_NOT_DISTURB_ENABLED = "true"
static

string indicating device setting do not disturb enabled

◆ MOCK_CONTEXT_REQUEST_TOKEN

const ContextRequestToken alexaClientSDK::diagnostics::test::MOCK_CONTEXT_REQUEST_TOKEN = 1
static

Request token used to mock getContext return value.

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