AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Functions | Variables
SQLiteDatabaseTest.cpp File Reference
#include <chrono>
#include <cstdlib>
#include <gtest/gtest.h>
#include <AVSCommon/Utils/File/FileUtils.h>
#include <SQLiteStorage/SQLiteDatabase.h>
Include dependency graph for SQLiteDatabaseTest.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::storage
 
 alexaClientSDK::storage::sqliteStorage
 
 alexaClientSDK::storage::sqliteStorage::test
 

Functions

static std::string alexaClientSDK::storage::sqliteStorage::test::generateDbFilePath ()
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_closeThenOpen)
 Test to close DB then open it. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_initializeAlreadyExisting)
 Test to initialize already existing DB. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_initializeBadPath)
 Test to initialize a bad path. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_initializeOnDirectory)
 Test to initialize a directory. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_initializeTwice)
 Test to initialize DB twice. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_openAlreadyExisting)
 Test to open already existing DB. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_openBadPath)
 Test to open a bad path. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_openDirectory)
 Test to open directory. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_openTwice)
 Test to open DB twice. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_transactionsCommit)
 Test transactions commit. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_transactionsRollback)
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_nestedTransactions)
 Test nested transactions. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_doubleCommit)
 Test transactions double commit. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_autoRollback)
 Test automatic rollback. More...
 
 alexaClientSDK::storage::sqliteStorage::test::TEST (SQLiteDatabaseTest, test_createDeleteTable)
 Test to initialize already existing DB. More...
 
int main (int argc, char **argv)
 

Variables

static std::string alexaClientSDK::storage::sqliteStorage::test::g_workingDirectory
 Variable for storing the working directory. This is where all of the test databases will be created. More...
 
static const std::string alexaClientSDK::storage::sqliteStorage::test::BAD_PATH
 An example of a path that doesn't exist in a system. More...
 
static const std::string alexaClientSDK::storage::sqliteStorage::test::TEST_TABLE_NAME {"testTable"}
 Test table name. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

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