AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | SQLiteMiscStorageTest |
Functions | |
static std::string | generateDbFilePath () |
TEST (SQLiteDatabaseTest, test_closeThenOpen) | |
Test to close DB then open it. More... | |
TEST (SQLiteDatabaseTest, test_initializeAlreadyExisting) | |
Test to initialize already existing DB. More... | |
TEST (SQLiteDatabaseTest, test_initializeBadPath) | |
Test to initialize a bad path. More... | |
TEST (SQLiteDatabaseTest, test_initializeOnDirectory) | |
Test to initialize a directory. More... | |
TEST (SQLiteDatabaseTest, test_initializeTwice) | |
Test to initialize DB twice. More... | |
TEST (SQLiteDatabaseTest, test_openAlreadyExisting) | |
Test to open already existing DB. More... | |
TEST (SQLiteDatabaseTest, test_openBadPath) | |
Test to open a bad path. More... | |
TEST (SQLiteDatabaseTest, test_openDirectory) | |
Test to open directory. More... | |
TEST (SQLiteDatabaseTest, test_openTwice) | |
Test to open DB twice. More... | |
TEST (SQLiteDatabaseTest, test_transactionsCommit) | |
Test transactions commit. More... | |
TEST (SQLiteDatabaseTest, test_transactionsRollback) | |
TEST (SQLiteDatabaseTest, test_nestedTransactions) | |
Test nested transactions. More... | |
TEST (SQLiteDatabaseTest, test_doubleCommit) | |
Test transactions double commit. More... | |
TEST (SQLiteDatabaseTest, test_autoRollback) | |
Test automatic rollback. More... | |
TEST (SQLiteDatabaseTest, test_createDeleteTable) | |
Test to initialize already existing DB. More... | |
TEST_F (SQLiteMiscStorageTest, test_createStringKeyValueTable) | |
Tests with creating a string key - string value table. More... | |
TEST_F (SQLiteMiscStorageTest, test_removeWithNonEscapedStringKey) | |
TEST_F (SQLiteMiscStorageTest, test_updateWithNonEscapedStringKey) | |
TEST_F (SQLiteMiscStorageTest, test_putWithNonEscapedStringKey) | |
TEST_F (SQLiteMiscStorageTest, test_addWithNonEscapedStringKey) | |
TEST_F (SQLiteMiscStorageTest, test_tableEntryTests) | |
Tests with table entry add, remove, update, put. More... | |
TEST_F (SQLiteMiscStorageTest, test_loadAndClear) | |
Tests with loading and clearing table entries. More... | |
TEST_F (SQLiteMiscStorageTest, test_createDeleteTable) | |
Tests with creating and deleting tables. More... | |
TEST_F (SQLiteMiscStorageTest, test_escapeSingleQuoteCharacters) | |
Test adding a string value with a single quote. More... | |
TEST_F (SQLiteMiscStorageTest, test_tableEntryTestsMultiThread) | |
Tests with table entry add, remove, update, put in multiple threads. More... | |
TEST_F (SQLiteMiscStorageTest, test_getDatabaseReference) | |
Test misc storage provide non-null reference to database object. More... | |
Variables | |
static std::string | g_workingDirectory |
Variable for storing the working directory. This is where all of the test databases will be created. More... | |
static const std::string | BAD_PATH |
An example of a path that doesn't exist in a system. More... | |
static const std::string | TEST_TABLE_NAME {"testTable"} |
Test table name. More... | |
static const std::string | COMPONENT_NAME = "SQLiteMiscStorageTest" |
Component name for the misc DB tables. More... | |
static const std::string | MISC_DB_CONFIG_JSON |
JSON text for miscDB config. More... | |
|
static |
Helper function that generates a unique filepath using the passed in g_workingDirectory.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_closeThenOpen | |||
) |
Test to close DB then open it.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_initializeAlreadyExisting | |||
) |
Test to initialize already existing DB.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_initializeBadPath | |||
) |
Test to initialize a bad path.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_initializeOnDirectory | |||
) |
Test to initialize a directory.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_initializeTwice | |||
) |
Test to initialize DB twice.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_openAlreadyExisting | |||
) |
Test to open already existing DB.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_openBadPath | |||
) |
Test to open a bad path.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_openDirectory | |||
) |
Test to open directory.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_openTwice | |||
) |
Test to open DB twice.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_transactionsCommit | |||
) |
Test transactions commit.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_transactionsRollback | |||
) |
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_nestedTransactions | |||
) |
Test nested transactions.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_doubleCommit | |||
) |
Test transactions double commit.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_autoRollback | |||
) |
Test automatic rollback.
alexaClientSDK::storage::sqliteStorage::test::TEST | ( | SQLiteDatabaseTest | , |
test_createDeleteTable | |||
) |
Test to initialize already existing DB.
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_createStringKeyValueTable | |||
) |
Tests with creating a string key - string value table.
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_removeWithNonEscapedStringKey | |||
) |
Setup.
Test remove.
Teardown.
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_updateWithNonEscapedStringKey | |||
) |
Setup.
Test update.
Teardown.
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_putWithNonEscapedStringKey | |||
) |
Setup.
Ensure that put entry works Try with a new entry for key
Try with an existing entry for key
Teardown.
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_addWithNonEscapedStringKey | |||
) |
Setup.
Test add.
Teardown.
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_tableEntryTests | |||
) |
Tests with table entry add, remove, update, put.
Entry doesn't exist at first
Ensure that add entry works
Ensure that update entry works
Ensure that remove entry works
Ensure that put entry works Try with a new entry for key
Try with an existing entry for key
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_loadAndClear | |||
) |
Tests with loading and clearing table entries.
Add entries
Ensure that load works
Ensure that clear works
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_createDeleteTable | |||
) |
Tests with creating and deleting tables.
Ensure that create works
Ensure that delete doesnt work on a non-empty table
Ensure that delete works on an empty table
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_escapeSingleQuoteCharacters | |||
) |
Test adding a string value with a single quote.
Entry doesn't exist at first
Ensure that add entry works
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_tableEntryTestsMultiThread | |||
) |
Tests with table entry add, remove, update, put in multiple threads.
Entry doesn't exist at first
Ensure that add entry works
Ensure that update entry works
Ensure that remove entry works
Ensure that put entry works Try with a new entry for key
Try with an existing entry for key
alexaClientSDK::storage::sqliteStorage::test::TEST_F | ( | SQLiteMiscStorageTest | , |
test_getDatabaseReference | |||
) |
Test misc storage provide non-null reference to database object.
|
static |
An example of a path that doesn't exist in a system.
|
static |
Component name for the misc DB tables.
|
static |
Variable for storing the working directory. This is where all of the test databases will be created.
|
static |
JSON text for miscDB config.
|
static |
Test table name.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0