![]()  | 
  
    AlexaClientSDK
    3.0.0
    
   A cross-platform, modular SDK for interacting with the Alexa Voice Service 
   | 
 
Classes | |
| class | CertifiedSenderTest | 
| class | MessageStorageTest | 
| class | MockCertifiedSender | 
| class | MockConnection | 
| class | MockMessageStorage | 
Functions | |
| TEST_F (CertifiedSenderTest, test_clearData) | |
| TEST_F (CertifiedSenderTest, test_initFailsWhenStorageMethodsFail) | |
| TEST_F (CertifiedSenderTest, testTimer_storedMessagesGetSent) | |
| TEST_F (CertifiedSenderTest, testTimer_SendMessageWithURI) | |
| TEST_F (CertifiedSenderTest, testTimer_retryableResponsesAreRetried) | |
| TEST_F (CertifiedSenderTest, testTimer_nonRetryableResponsesAreNotRetried) | |
| static bool | isOpen (const std::shared_ptr< MessageStorageInterface > &storage) | 
| TEST_F (MessageStorageTest, test_constructionAndDestruction) | |
| TEST_F (MessageStorageTest, test_databaseCreation) | |
| TEST_F (MessageStorageTest, test_openAndCloseDatabase) | |
| TEST_F (MessageStorageTest, test_databaseStoreAndLoad) | |
| TEST_F (MessageStorageTest, test_databaseErase) | |
| TEST_F (MessageStorageTest, test_databaseClear) | |
| TEST_F (MessageStorageTest, test_DatabaseStoreAndLoadWithURI) | |
| TEST_F (MessageStorageTest, test_LegacyDatabase) | |
| TEST_F (MessageStorageTest, test_EraseMessageOverAgeAndSizeLimit) | |
Variables | |
| static const std::string | TEST_MESSAGE = "TEST_MESSAGE" | 
| A sample message.  More... | |
| static const std::string | TEST_URI = "TEST_URI" | 
| A sample message URI.  More... | |
| static const auto | TEST_TIMEOUT = std::chrono::seconds(5) | 
| Timeout used in test.  More... | |
| static const auto | LONG_TEST_TIMEOUT = std::chrono::seconds(20) | 
| Very long timeout used in test.  More... | |
| static const std::string | TEST_DATABASE_FILE_PATH = "messageStorageTestDatabase.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 std::string | g_dbTestFilePath | 
| The full filepath to the database file we will create and delete during tests.  More... | |
| static const std::string | TEST_MESSAGE_ONE = "test_message_one" | 
| A test message text.  More... | |
| static const std::string | TEST_MESSAGE_TWO = "test_message_two" | 
| A test message text.  More... | |
| static const std::string | TEST_MESSAGE_THREE = "test_message_three" | 
| A test message text.  More... | |
| static const std::string | TEST_MESSAGE_URI = "/v20160207/events/SpeechRecognizer/Recognize" | 
| A test message uri.  More... | |
| static const std::string | MESSAGES_TABLE_NAME = "messages_with_uri" | 
| The name of the alerts table.  More... | |
| static const std::string | DATABASE_COLUMN_ID_NAME = "id" | 
| The name of the 'id' field we will use as the primary key in our tables.  More... | |
| static const std::string | DATABASE_COLUMN_MESSAGE_TEXT_NAME = "message_text" | 
| The name of the 'message_text' field we will use as the primary key in our tables.  More... | |
| static const std::string | DATABASE_COLUMN_URI = "uri" | 
| The name of the 'uriPathExtension' field corresponding to the uri path extension of the message.  More... | |
| static const std::string | DATABASE_COLUMN_TIMESTAMP = "timestamp" | 
| The name of the 'timestamp' field is the creation time of the message.  More... | |
| static const std::string | CREATE_LEGACY_MESSAGES_TABLE_SQL_STRING | 
| The SQL string to create the alerts table.  More... | |
      
  | 
  static | 
Utility function to determine if the storage component is opened.
| storage | The storage component to check. | 
| alexaClientSDK::certifiedSender::test::TEST_F | ( | CertifiedSenderTest | , | 
| test_clearData | |||
| ) | 
Check that clearData() method clears the persistent message storage and the current msg queue 
| alexaClientSDK::certifiedSender::test::TEST_F | ( | CertifiedSenderTest | , | 
| test_initFailsWhenStorageMethodsFail | |||
| ) | 
Tests various failure scenarios for the init method.
Test if the init method fails when createDatabase on storage fails.
Test if the init method fails when load from storage fails.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | CertifiedSenderTest | , | 
| testTimer_storedMessagesGetSent | |||
| ) | 
Tests if the stored messages get sent when a connection is established.
Return messages from storage.
wait for requests to get sent out.
Cleanup
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_constructionAndDestruction | |||
| ) | 
Test basic construction. Database should not be open.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_databaseCreation | |||
| ) | 
Test database creation.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_openAndCloseDatabase | |||
| ) | 
Test opening and closing a database.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_databaseStoreAndLoad | |||
| ) | 
Test storing records in the database.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | CertifiedSenderTest | , | 
| testTimer_SendMessageWithURI | |||
| ) | 
Verify that a message with a URI specified will be sent out by the sender with the URI.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_databaseErase | |||
| ) | 
Test erasing a record from the database.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | CertifiedSenderTest | , | 
| testTimer_retryableResponsesAreRetried | |||
| ) | 
Tests if messages are re-submitted when the response is a re-tryable response.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_databaseClear | |||
| ) | 
Test clearing the database.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_DatabaseStoreAndLoadWithURI | |||
| ) | 
Test storing records with URI in the database.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | CertifiedSenderTest | , | 
| testTimer_nonRetryableResponsesAreNotRetried | |||
| ) | 
Tests if messages are discarded when the response is a non-retryable response.
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_LegacyDatabase | |||
| ) | 
Test legacy database
| alexaClientSDK::certifiedSender::test::TEST_F | ( | MessageStorageTest | , | 
| test_EraseMessageOverAgeAndSizeLimit | |||
| ) | 
Test erase legacy message
      
  | 
  static | 
The SQL string to create the alerts table.
      
  | 
  static | 
The name of the 'id' field we will use as the primary key in our tables.
      
  | 
  static | 
The name of the 'message_text' field we will use as the primary key in our tables.
      
  | 
  static | 
The name of the 'timestamp' field is the creation time of the message.
      
  | 
  static | 
The name of the 'uriPathExtension' field corresponding to the uri path extension of the message.
      
  | 
  static | 
The full filepath to the database file we will create and delete during tests.
      
  | 
  static | 
Very long timeout used in test.
      
  | 
  static | 
The name of the alerts table.
      
  | 
  static | 
The path delimiter used by the OS to identify file locations.
      
  | 
  static | 
The filename we will use for the test database file.
      
  | 
  static | 
A sample message.
      
  | 
  static | 
A test message text.
      
  | 
  static | 
A test message text.
      
  | 
  static | 
A test message text.
      
  | 
  static | 
A test message uri.
      
  | 
  static | 
Timeout used in test.
      
  | 
  static | 
A sample message URI.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0