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

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< MockAlertcreateAlert (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< SQLiteAlertStoragem_alertStorage
 The SQLiteAlertStorage instance to test. More...
 
std::shared_ptr< MockAlertsAudioFactorym_mockAlertsAudioFactory
 The AlertsAudioFactoryInterface instance to provide audio resources. More...
 
std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterfacem_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 ()
 

Constructor & Destructor Documentation

◆ SQLiteAlertStorageTest()

alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::SQLiteAlertStorageTest ( )

Constructor,.

Member Function Documentation

◆ alertExists()

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.

◆ createAlert()

std::shared_ptr< MockAlert > alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::createAlert ( const std::string &  alertType)

Utility function to create the alert;.

◆ isTableEmpty()

bool alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::isTableEmpty ( SQLiteDatabase db,
const std::string &  tableName 
)

Utility function to check if a table is empty.

◆ SetUp()

void alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::SetUp ( )
overridevirtual

Setup for tests.

Reimplemented from testing::Test.

◆ setUpDatabase()

void alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::setUpDatabase ( )

Sets up alerts database.

◆ TearDown()

void alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::TearDown ( )
overridevirtual

Cleanup for test.

Reimplemented from testing::Test.

Member Data Documentation

◆ m_alertStorage

std::shared_ptr<SQLiteAlertStorage> alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::m_alertStorage

The SQLiteAlertStorage instance to test.

◆ m_mockAlertsAudioFactory

std::shared_ptr<MockAlertsAudioFactory> alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::m_mockAlertsAudioFactory

The AlertsAudioFactoryInterface instance to provide audio resources.

◆ m_mockMetricRecorder

std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> alexaClientSDK::acsdkAlerts::test::SQLiteAlertStorageTest::m_mockMetricRecorder

The MetricRecorderInterface instance to record metrics.


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

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