![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
MessageStorageTest () | |
~MessageStorageTest () | |
void | createDatabase () |
bool | createLegacyDatabase () |
void | cleanupLocalDbFile () |
int | isDatabaseLegacy () |
bool | insertOldMessagesToDatabase (int id, const std::string &record_age) |
bool | createOldMessages () |
![]() | |
virtual | ~Test () |
Protected Attributes | |
std::shared_ptr< MessageStorageInterface > | m_storage |
The message database object we will test. More... | |
std::unique_ptr< alexaClientSDK::storage::sqliteStorage::SQLiteDatabase > | m_legacyDB |
Additional Inherited Members | |
![]() | |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
![]() | |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
![]() | |
Test () | |
virtual void | SetUp () |
virtual void | TearDown () |
A class which helps drive this unit test suite.
alexaClientSDK::certifiedSender::test::MessageStorageTest::MessageStorageTest | ( | ) |
Constructor.
alexaClientSDK::certifiedSender::test::MessageStorageTest::~MessageStorageTest | ( | ) |
Destructor.
void alexaClientSDK::certifiedSender::test::MessageStorageTest::cleanupLocalDbFile | ( | ) |
Utility function to cleanup the test database file, if it exists.
void alexaClientSDK::certifiedSender::test::MessageStorageTest::createDatabase | ( | ) |
Utility function to create the database, using the global filename.
bool alexaClientSDK::certifiedSender::test::MessageStorageTest::createLegacyDatabase | ( | ) |
Utility function to create legacy database that does not have timestamp column
bool alexaClientSDK::certifiedSender::test::MessageStorageTest::createOldMessages | ( | ) |
Utility function to create old messages in the storage
bool alexaClientSDK::certifiedSender::test::MessageStorageTest::insertOldMessagesToDatabase | ( | int | id, |
const std::string & | record_age | ||
) |
Utility function to insert old messages in the storage
int alexaClientSDK::certifiedSender::test::MessageStorageTest::isDatabaseLegacy | ( | ) |
Utility function to check if the current table is legacy or not EXPECT: 1 = DB is legacy, 0 = DB is not legacy, -1 = errors
|
protected |
|
protected |
The message database object we will test.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0