AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
SQLiteAlertStorageTest () | |
Constructor,. More... | |
void | SetUp () override |
Setup for tests. More... | |
void | TearDown () override |
Cleanup for test. More... | |
void | setUpDatabase () |
Sets up alerts database. More... | |
std::shared_ptr< MockAlert > | createAlert (const std::string &alertType) |
Utility function to create the alert;. More... | |
bool | alertExists (SQLiteDatabase *db, const std::string &tableName, const std::string &token) |
Utility function to check if the alert exists in a specific table. More... | |
bool | isTableEmpty (SQLiteDatabase *db, const std::string &tableName) |
Utility function to check if a table is empty. More... | |
Public Member Functions inherited from testing::Test | |
virtual | ~Test () |
Public Attributes | |
std::shared_ptr< SQLiteAlertStorage > | m_alertStorage |
The SQLiteAlertStorage instance to test. More... | |
std::shared_ptr< MockAlertsAudioFactory > | m_mockAlertsAudioFactory |
The AlertsAudioFactoryInterface instance to provide audio resources. More... | |
std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > | m_mockMetricRecorder |
The MetricRecorderInterface instance to record metrics. More... | |
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 () | |
alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::SQLiteAlertStorageTest | ( | ) |
Constructor,.
bool alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::alertExists | ( | SQLiteDatabase * | db, |
const std::string & | tableName, | ||
const std::string & | token | ||
) |
Utility function to check if the alert exists in a specific table.
std::shared_ptr< MockAlert > alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::createAlert | ( | const std::string & | alertType | ) |
Utility function to create the alert;.
bool alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::isTableEmpty | ( | SQLiteDatabase * | db, |
const std::string & | tableName | ||
) |
Utility function to check if a table is empty.
|
overridevirtual |
Setup for tests.
Reimplemented from testing::Test.
void alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::setUpDatabase | ( | ) |
Sets up alerts database.
|
overridevirtual |
Cleanup for test.
Reimplemented from testing::Test.
std::shared_ptr<SQLiteAlertStorage> alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::m_alertStorage |
The SQLiteAlertStorage
instance to test.
std::shared_ptr<MockAlertsAudioFactory> alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::m_mockAlertsAudioFactory |
The AlertsAudioFactoryInterface
instance to provide audio resources.
std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::m_mockMetricRecorder |
The MetricRecorderInterface
instance to record metrics.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0