AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Attributes | List of all members
alexaClientSDK::certifiedSender::test::MessageStorageTest Class Reference
Inheritance diagram for alexaClientSDK::certifiedSender::test::MessageStorageTest:
Inheritance graph
Collaboration diagram for alexaClientSDK::certifiedSender::test::MessageStorageTest:
Collaboration graph

Public Member Functions

 MessageStorageTest ()
 ~MessageStorageTest ()
void createDatabase ()
bool createLegacyDatabase ()
void cleanupLocalDbFile ()
int isDatabaseLegacy ()
bool insertOldMessagesToDatabase (int id, const std::string &record_age)
bool createOldMessages ()
- Public Member Functions inherited from testing::Test
virtual ~Test ()

Protected Attributes

std::shared_ptr< MessageStorageInterfacem_storage
 The message database object we will test. More...
std::unique_ptr< alexaClientSDK::storage::sqliteStorage::SQLiteDatabasem_legacyDB

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
- Static Public Member Functions inherited from testing::Test
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)
- Protected Member Functions inherited from testing::Test
 Test ()
virtual void SetUp ()
virtual void TearDown ()

Detailed Description

A class which helps drive this unit test suite.

Constructor & Destructor Documentation

◆ MessageStorageTest()

alexaClientSDK::certifiedSender::test::MessageStorageTest::MessageStorageTest ( )


◆ ~MessageStorageTest()

alexaClientSDK::certifiedSender::test::MessageStorageTest::~MessageStorageTest ( )


Member Function Documentation

◆ cleanupLocalDbFile()

void alexaClientSDK::certifiedSender::test::MessageStorageTest::cleanupLocalDbFile ( )

Utility function to cleanup the test database file, if it exists.

◆ createDatabase()

void alexaClientSDK::certifiedSender::test::MessageStorageTest::createDatabase ( )

Utility function to create the database, using the global filename.

◆ createLegacyDatabase()

bool alexaClientSDK::certifiedSender::test::MessageStorageTest::createLegacyDatabase ( )

Utility function to create legacy database that does not have timestamp column

◆ createOldMessages()

bool alexaClientSDK::certifiedSender::test::MessageStorageTest::createOldMessages ( )

Utility function to create old messages in the storage

◆ insertOldMessagesToDatabase()

bool alexaClientSDK::certifiedSender::test::MessageStorageTest::insertOldMessagesToDatabase ( int  id,
const std::string &  record_age 

Utility function to insert old messages in the storage

◆ isDatabaseLegacy()

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

Member Data Documentation

◆ m_legacyDB

std::unique_ptr<alexaClientSDK::storage::sqliteStorage::SQLiteDatabase> alexaClientSDK::certifiedSender::test::MessageStorageTest::m_legacyDB

◆ m_storage

std::shared_ptr<MessageStorageInterface> alexaClientSDK::certifiedSender::test::MessageStorageTest::m_storage

The message database object we will test.

The documentation for this class was generated from the following file:

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