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

Classes

struct  FuturePromisePair
 
class  MockNotificationRenderer
 
class  MockNotificationRendererObserver
 
class  NotificationRendererTest
 
class  NotificationsCapabilityAgentTest
 
class  NotificationsStorageTest
 
class  StubAudioFactory
 
class  TestNotificationsAudioFactory
 
class  TestNotificationsObserver
 
class  TestNotificationsStorage
 

Typedefs

using IndicatorState = avsCommon::avs::IndicatorState
 

Functions

 TEST_F (NotificationRendererTest, test_createWithNullMediaPlayer)
 
 TEST_F (NotificationRendererTest, test_createWithNullApplicationAudioPipelineFactory)
 
 TEST_F (NotificationRendererTest, test_createWithNullShutdownNotifier)
 
 TEST_F (NotificationRendererTest, test_createWithNullFocusManager)
 
 TEST_F (NotificationRendererTest, test_createNotificationsMediaPlayerWithAudioPipelineFactory)
 
 TEST_F (NotificationRendererTest, test_playPreferredStream)
 
 TEST_F (NotificationRendererTest, testTimer_playDefaultStream)
 
 TEST_F (NotificationRendererTest, test_secondPlayRejected)
 
 TEST_F (NotificationRendererTest, testTimer_secondPlayWhilePlayingDefaultStream)
 
 TEST_F (NotificationRendererTest, test_cancelNotificationRendering)
 
 TEST_F (NotificationRendererTest, test_renderNotificationWhileNotifying)
 
 TEST_F (NotificationRendererTest, test_renderWhenAcquireChannelsSucceeds)
 
 TEST_F (NotificationRendererTest, test_renderWhenAcquireChannelsFails)
 
 TEST_F (NotificationRendererTest, testShutdown)
 
static std::chrono::milliseconds MY_WAIT_TIMEOUT (1000)
 Plenty of time for a test to complete. More...
 
static std::chrono::milliseconds RENDER_TIME (10)
 Time to simulate a notification rendering. More...
 
static const std::string NAMESPACE_NOTIFICATIONS ("Notifications")
 Notifications namespace. More...
 
static const std::string NAME_SET_INDICATOR ("SetIndicator")
 Name for Notifications SetIndicator directive. More...
 
static const std::string NAME_CLEAR_INDICATOR ("ClearIndicator")
 Name for Notifications ClearIndicator directive. More...
 
static const std::string MESSAGE_ID_TEST ("MessageId_Test")
 Message Id for testing. More...
 
static const std::string MESSAGE_ID_TEST2 ("MessageId_Test2")
 
static const std::string CONTEXT_ID_TEST ("ContextId_Test")
 Context ID for testing. More...
 
static const std::string ASSET_ID1 ("assetId1")
 Test fields for payloads. More...
 
static const std::string ASSET_ID2 ("assetId2")
 
static const std::string ASSET_URL1 ("assetUrl1")
 
static const std::string ASSET_URL2 ("assetUrl2")
 
static const std::string TAG ("NotificationsCapabilityAgentTest")
 String to identify log entries originating from this file. More...
 
 TEST_F (NotificationsCapabilityAgentTest, test_createNotificationsCapabilityAgent)
 
 TEST_F (NotificationsCapabilityAgentTest, test_nonEmptyStartupQueue)
 
 TEST_F (NotificationsCapabilityAgentTest, test_sendSetIndicator)
 
 TEST_F (NotificationsCapabilityAgentTest, test_sendSetIndicatorIncreasesCount)
 
 TEST_F (NotificationsCapabilityAgentTest, test_persistVisualIndicatorPreservedIncreasesCount)
 
 TEST_F (NotificationsCapabilityAgentTest, test_sendSetIndicatorWithAudio)
 
 TEST_F (NotificationsCapabilityAgentTest, test_sendSetIndicatorWithVisualIndicator)
 
 TEST_F (NotificationsCapabilityAgentTest, test_sameAssetId)
 
 TEST_F (NotificationsCapabilityAgentTest, test_persistVisualIndicatorPreserved)
 
 TEST_F (NotificationsCapabilityAgentTest, test_clearIndicatorWithEmptyQueue)
 
 TEST_F (NotificationsCapabilityAgentTest, test_clearIndicatorWithEmptyQueueAndIndicatorOn)
 
 TEST_F (NotificationsCapabilityAgentTest, testSlow_clearIndicatorAfterMultipleSetIndicators)
 
 TEST_F (NotificationsCapabilityAgentTest, test_multipleSetIndicators)
 
 TEST_F (NotificationsCapabilityAgentTest, test_clearData)
 
 TEST_F (NotificationsCapabilityAgentTest, test_addObserverToNotificationsAfterCapabilityAgentDestroyed)
 
static bool isOpen (const std::shared_ptr< acsdkNotificationsInterfaces::NotificationsStorageInterface > &storage)
 
 TEST_F (NotificationsStorageTest, test_constructionAndDestruction)
 
 TEST_F (NotificationsStorageTest, test_databaseCreation)
 
 TEST_F (NotificationsStorageTest, test_openAndCloseDatabase)
 
 TEST_F (NotificationsStorageTest, test_databaseEnqueueAndDequeue)
 
 TEST_F (NotificationsStorageTest, test_settingAndGettingIndicatorState)
 
 TEST_F (NotificationsStorageTest, test_clearingNotificationIndicators)
 
 TEST_F (NotificationsStorageTest, test_defaultValueForEmptyStorage)
 
 TEST_F (NotificationsStorageTest, test_defaultValueForInvalidDBContents)
 
 TEST_F (NotificationsStorageTest, test_checkingEmptyQueue)
 
 TEST_F (NotificationsStorageTest, test_databasePersistence)
 
 TEST_F (NotificationsStorageTest, test_queueOrder)
 
 TEST_F (NotificationsStorageTest, test_peek)
 
 TEST_F (NotificationsStorageTest, test_size)
 

Variables

static const std::chrono::milliseconds ZERO_TIMEOUT {0}
 
static const std::chrono::milliseconds EXPECTED_TIMEOUT {100}
 (short) Timeout value to use when reaching the timeout is expected. More...
 
static const std::chrono::milliseconds UNEXPECTED_TIMEOUT {5000}
 (long) Timeout value to use when reaching the timeout is NOT expected. More...
 
static std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >)> goodStreamFunction
 
static const NamespaceAndName NAMESPACE_AND_NAME_INDICATOR_STATE {NAMESPACE_NOTIFICATIONS, "IndicatorState"}
 The NamespaceAndName to send to the ContextManager. More...
 
static const std::string DEFAULT_NOTIFICATION_AUDIO {"default notification audio"}
 Default "audio" for testing. More...
 
static const std::string NOTIFICATIONS_CONFIG_JSON
 Mocking the json config file. More...
 
static const std::string TEST_DATABASE_FILE_PATH = "notificationsStorageTestDatabase.db"
 The filename we will use for the test database file. More...
 
static const std::string PATH_DELIMITER = "/"
 The path delimiter used by the OS to identify file locations. More...
 
static const std::string TEST_ASSET_ID1 = "testAssetId1"
 AssetId strings for testing. More...
 
static const std::string TEST_ASSET_ID2 = "testAssetId2"
 
static const std::string TEST_ASSET_URL1 = "testAssetUrl1"
 AssetUrl strings for testing. More...
 
static const std::string TEST_ASSET_URL2 = "testAssetUrl2"
 
static const std::string INDICATOR_STATE_NAME = "indicatorState"
 Indicator state table/column name in the database. More...
 
static const int INVALID_STATE_VALUE = 123
 Value to represent the invalid indicator state. More...
 
static const unsigned int NUM_TEST_INDICATORS = 15
 Number to use when generating many NotificationIndicators. More...
 
static const unsigned int NOTIFICATION_INDICATOR_SEED = 1
 Seed to generate random values for NotificationIndicators. More...
 
static const unsigned int MAX_RANDOM_INT = 100
 The max random number to generate. More...
 

Typedef Documentation

◆ IndicatorState

Function Documentation

◆ ASSET_ID1()

static const std::string alexaClientSDK::acsdkNotifications::test::ASSET_ID1 ( "assetId1"  )
static

Test fields for payloads.

◆ ASSET_ID2()

static const std::string alexaClientSDK::acsdkNotifications::test::ASSET_ID2 ( "assetId2"  )
static

◆ ASSET_URL1()

static const std::string alexaClientSDK::acsdkNotifications::test::ASSET_URL1 ( "assetUrl1"  )
static

◆ ASSET_URL2()

static const std::string alexaClientSDK::acsdkNotifications::test::ASSET_URL2 ( "assetUrl2"  )
static

◆ CONTEXT_ID_TEST()

static const std::string alexaClientSDK::acsdkNotifications::test::CONTEXT_ID_TEST ( "ContextId_Test"  )
static

Context ID for testing.

◆ isOpen()

static bool alexaClientSDK::acsdkNotifications::test::isOpen ( const std::shared_ptr< acsdkNotificationsInterfaces::NotificationsStorageInterface > &  storage)
static

Utility function to determine if the storage component is opened.

Parameters
storageThe storage component to check.
Returns
True if the storage component's underlying database is opened, false otherwise.

◆ MESSAGE_ID_TEST()

static const std::string alexaClientSDK::acsdkNotifications::test::MESSAGE_ID_TEST ( "MessageId_Test"  )
static

Message Id for testing.

◆ MESSAGE_ID_TEST2()

static const std::string alexaClientSDK::acsdkNotifications::test::MESSAGE_ID_TEST2 ( "MessageId_Test2"  )
static

◆ MY_WAIT_TIMEOUT()

static std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::MY_WAIT_TIMEOUT ( 1000  )
static

Plenty of time for a test to complete.

◆ NAME_CLEAR_INDICATOR()

static const std::string alexaClientSDK::acsdkNotifications::test::NAME_CLEAR_INDICATOR ( "ClearIndicator"  )
static

Name for Notifications ClearIndicator directive.

◆ NAME_SET_INDICATOR()

static const std::string alexaClientSDK::acsdkNotifications::test::NAME_SET_INDICATOR ( "SetIndicator"  )
static

Name for Notifications SetIndicator directive.

◆ NAMESPACE_NOTIFICATIONS()

static const std::string alexaClientSDK::acsdkNotifications::test::NAMESPACE_NOTIFICATIONS ( "Notifications"  )
static

Notifications namespace.

◆ RENDER_TIME()

static std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::RENDER_TIME ( 10  )
static

Time to simulate a notification rendering.

◆ TAG()

static const std::string alexaClientSDK::acsdkNotifications::test::TAG ( "NotificationsCapabilityAgentTest"  )
static

String to identify log entries originating from this file.

◆ TEST_F() [1/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_constructionAndDestruction   
)

Test basic construction. Database should not be open.

◆ TEST_F() [2/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_databaseCreation   
)

Test database creation.

◆ TEST_F() [3/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_openAndCloseDatabase   
)

Test opening and closing a database.

◆ TEST_F() [4/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_databaseEnqueueAndDequeue   
)

Test enqueueing and dequeueing records in the database.

◆ TEST_F() [5/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_createWithNullMediaPlayer   
)

Test that create fails with a null MediaPlayer

◆ TEST_F() [6/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_createWithNullApplicationAudioPipelineFactory   
)

Test that create fails with a null AudioPipelineFactory.

◆ TEST_F() [7/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_settingAndGettingIndicatorState   
)

Test setting and getting the IndicatorState

◆ TEST_F() [8/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_createWithNullShutdownNotifier   
)

Test that create fails with a null shutdown notifier.

◆ TEST_F() [9/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_createWithNullFocusManager   
)

Test that create fails with a null FocusManager

◆ TEST_F() [10/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_clearingNotificationIndicators   
)

Test just clearing the notification indicators table.

◆ TEST_F() [11/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_createNotificationsMediaPlayerWithAudioPipelineFactory   
)

Test that renderer creates a correctly-configured notifications application media interfaces with the audio pipeline factory.

◆ TEST_F() [12/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_defaultValueForEmptyStorage   
)

Test that empty database (due to a corruption or crash) results in default indicator state being used (non-undefined).

◆ TEST_F() [13/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_playPreferredStream   
)

Exercise rendering the preferred stream. Verify that the MediaPlayer's setSource() and play() methods get called (once each) and that the NotificationRenderer's observer gets called back to indicate that playback had completed.

◆ TEST_F() [14/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_defaultValueForInvalidDBContents   
)

Test that invalid database value (due to a corruption or crash) results in default indicator state being used (non-undefined).

◆ TEST_F() [15/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
testTimer_playDefaultStream   
)

Exercise rendering the default stream. Verify that the MediaPlayer's setSource() and play() methods get called (once each) and that the NotificationRenderer's observer gets called back to indicate that playback had completed.

◆ TEST_F() [16/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_checkingEmptyQueue   
)

Test checking for an empty queue.

◆ TEST_F() [17/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_secondPlayRejected   
)

Exercise making a second renderNotification() call while a previous one is still outstanding. Verify that it is rejected.

◆ TEST_F() [18/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
testTimer_secondPlayWhilePlayingDefaultStream   
)

Exercise rendering the default stream. Verify that a call to renderNotification() while the default stream is playing is rejected.

◆ TEST_F() [19/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_databasePersistence   
)

Test persistence across closing and reopening database.

◆ TEST_F() [20/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_cancelNotificationRendering   
)

Exercise cancelNotificationRendering(). Verify that it causes rendering to complete.

◆ TEST_F() [21/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_renderNotificationWhileNotifying   
)

Verify that calling renderNotification() while notification of rendering completion is underway (but not from the callback itself) is accepted. This verifies the use case where onNotificationRenderingFinished() is used as a trigger to render the next notification.

◆ TEST_F() [22/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_queueOrder   
)

Test that ordering is maintained with multiple queueing/dequeueing.

◆ TEST_F() [23/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_renderWhenAcquireChannelsSucceeds   
)

Test that notification renders properly when acquireChannel succeeds and that the audio channel is successfully released

◆ TEST_F() [24/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_peek   
)

Test that peek() functionality works.

◆ TEST_F() [25/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
test_renderWhenAcquireChannelsFails   
)

Test that notification does not render when acquireChannel fails

◆ TEST_F() [26/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationRendererTest  ,
testShutdown   
)

Test that shutdown does the correct cleanup.

◆ TEST_F() [27/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsStorageTest  ,
test_size   
)

Test that queueSize() works correctly.

◆ TEST_F() [28/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_createNotificationsCapabilityAgent   
)

Test createNotificationsCapabilityAgent() with nullptrs

◆ TEST_F() [29/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_nonEmptyStartupQueue   
)

Test starting up the capability agent with a non-empty queue. Expect that the next item in the queue will be played.

◆ TEST_F() [30/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_sendSetIndicator   
)

Test a single SetIndicator directive with persistVisualIndicator and playAudioIndicator set to false. Expect that the NotificationsObserver is notified of the indicator's state remaining OFF. Expect no calls to render notifications since playAudioIndicator is false.

◆ TEST_F() [31/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_sendSetIndicatorIncreasesCount   
)

Test that duplicate SetIndicator directive with persistVisualIndicator and playAudioIndicator set to various values. Expect that the NotificationsObserver is notified of the indicator's count on initialization. Expect all calls to increase notification count.

◆ TEST_F() [32/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_persistVisualIndicatorPreservedIncreasesCount   
)

Test that the indication count is preserved across shutdown.

◆ TEST_F() [33/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_sendSetIndicatorWithAudio   
)

Test a single SetIndicator directive with with playAudioIndicator set to true. Expect the renderer to start playback of the Notification. Expect that the NotificationsObserver is notified of the indicator's state being OFF.

◆ TEST_F() [34/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_sendSetIndicatorWithVisualIndicator   
)

Test a single SetIndicator directive with with persistVisualIndicator set to true. Expect that the NotificationsObserver is notified of the indicator's state being ON.

◆ TEST_F() [35/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_sameAssetId   
)

Test sending two SetIndicator directives where the second has the same assetId as the first. Expect that the renderer only gets one call to renderNotification().

◆ TEST_F() [36/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_persistVisualIndicatorPreserved   
)

Test that the persistVisualIndicator setting is preserved and used across shutdown.

◆ TEST_F() [37/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_clearIndicatorWithEmptyQueue   
)

Test sending a ClearIndicator directive with an empty queue, expecting nothing to happen.

◆ TEST_F() [38/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_clearIndicatorWithEmptyQueueAndIndicatorOn   
)

Test sending a ClearIndicator directive with an empty queue and the indicator state set to ON. Expect that the indicator is set to OFF.

◆ TEST_F() [39/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
testSlow_clearIndicatorAfterMultipleSetIndicators   
)

Test sending a ClearIndicator directive after multiple SetIndicator directives. Expect that the indicator is set to OFF.

◆ TEST_F() [40/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_multipleSetIndicators   
)

Test sending multiple SetIndicators and letting them all render. Expect multiple calls to renderNotification().

◆ TEST_F() [41/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_clearData   
)

Test that clearData() removes all notifications and sets the indicator to OFF.

◆ TEST_F() [42/42]

alexaClientSDK::acsdkNotifications::test::TEST_F ( NotificationsCapabilityAgentTest  ,
test_addObserverToNotificationsAfterCapabilityAgentDestroyed   
)

Variable Documentation

◆ DEFAULT_NOTIFICATION_AUDIO

const std::string alexaClientSDK::acsdkNotifications::test::DEFAULT_NOTIFICATION_AUDIO {"default notification audio"}
static

Default "audio" for testing.

◆ EXPECTED_TIMEOUT

const std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::EXPECTED_TIMEOUT {100}
static

(short) Timeout value to use when reaching the timeout is expected.

◆ goodStreamFunction

std::function<std::pair<std::unique_ptr<std::istream>, const avsCommon::utils::MediaType>)> alexaClientSDK::acsdkNotifications::test::goodStreamFunction
static
Initial value:
=
[] {
return std::pair<std::unique_ptr<std::istream>, const avsCommon::utils::MediaType>(
std::unique_ptr<std::istream>(new std::stringstream), avsCommon::utils::MediaType::MPEG);
}
MediaType
Definition: MediaType.h:29

Factory of non-null istreams.

Returns
a non-null istream.

◆ INDICATOR_STATE_NAME

const std::string alexaClientSDK::acsdkNotifications::test::INDICATOR_STATE_NAME = "indicatorState"
static

Indicator state table/column name in the database.

◆ INVALID_STATE_VALUE

const int alexaClientSDK::acsdkNotifications::test::INVALID_STATE_VALUE = 123
static

Value to represent the invalid indicator state.

◆ MAX_RANDOM_INT

const unsigned int alexaClientSDK::acsdkNotifications::test::MAX_RANDOM_INT = 100
static

The max random number to generate.

◆ NAMESPACE_AND_NAME_INDICATOR_STATE

const NamespaceAndName alexaClientSDK::acsdkNotifications::test::NAMESPACE_AND_NAME_INDICATOR_STATE {NAMESPACE_NOTIFICATIONS, "IndicatorState"}
static

The NamespaceAndName to send to the ContextManager.

◆ NOTIFICATION_INDICATOR_SEED

const unsigned int alexaClientSDK::acsdkNotifications::test::NOTIFICATION_INDICATOR_SEED = 1
static

Seed to generate random values for NotificationIndicators.

◆ NOTIFICATIONS_CONFIG_JSON

const std::string alexaClientSDK::acsdkNotifications::test::NOTIFICATIONS_CONFIG_JSON
static
Initial value:
=
"{"
"\"notifications\":{"
"\"databaseFilePath\":\"notificationsUnitTest.db\""
"}"
"}"

Mocking the json config file.

◆ NUM_TEST_INDICATORS

const unsigned int alexaClientSDK::acsdkNotifications::test::NUM_TEST_INDICATORS = 15
static

Number to use when generating many NotificationIndicators.

◆ PATH_DELIMITER

const std::string alexaClientSDK::acsdkNotifications::test::PATH_DELIMITER = "/"
static

The path delimiter used by the OS to identify file locations.

◆ TEST_ASSET_ID1

const std::string alexaClientSDK::acsdkNotifications::test::TEST_ASSET_ID1 = "testAssetId1"
static

AssetId strings for testing.

◆ TEST_ASSET_ID2

const std::string alexaClientSDK::acsdkNotifications::test::TEST_ASSET_ID2 = "testAssetId2"
static

◆ TEST_ASSET_URL1

const std::string alexaClientSDK::acsdkNotifications::test::TEST_ASSET_URL1 = "testAssetUrl1"
static

AssetUrl strings for testing.

◆ TEST_ASSET_URL2

const std::string alexaClientSDK::acsdkNotifications::test::TEST_ASSET_URL2 = "testAssetUrl2"
static

◆ TEST_DATABASE_FILE_PATH

const std::string alexaClientSDK::acsdkNotifications::test::TEST_DATABASE_FILE_PATH = "notificationsStorageTestDatabase.db"
static

The filename we will use for the test database file.

◆ UNEXPECTED_TIMEOUT

const std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::UNEXPECTED_TIMEOUT {5000}
static

(long) Timeout value to use when reaching the timeout is NOT expected.

◆ ZERO_TIMEOUT

const std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::ZERO_TIMEOUT {0}
static

Timeout value to use when no wait is desired (e.g. to check the status of a signal)

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