AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions | Variables
alexaClientSDK::sampleApplications::ipcServerSampleApp::test Namespace Reference

Classes

class  IPCVersionManagerTest
 
class  MockMiscStorage
 
class  MockRenderCaptionsInterface
 
class  SmartScreenCaptionPresenterTest
 
class  SmartScreenCaptionStateManagerTest
 

Functions

static const std::string SESSION_SETUP ("SessionSetup")
 The SessionSetup string. More...
 
static const std::string FOCUS_MANAGER ("FocusManager")
 The FocusManager string. More...
 
static const std::string CONTROLLER ("Controller")
 The Controller string. More...
 
 TEST_F (IPCVersionManagerTest, test_serverClientVersionEqual)
 
 TEST_F (IPCVersionManagerTest, test_highServerVersion)
 
 TEST_F (IPCVersionManagerTest, test_highClientVersion)
 
 TEST_F (IPCVersionManagerTest, test_mixedMismatch)
 
 TEST_F (IPCVersionManagerTest, test_mixedMismatchDocument)
 
 TEST_F (IPCVersionManagerTest, test_mixedMiddleEntryMismatchDocument)
 
 TEST_F (IPCVersionManagerTest, test_registeredNamespaceOnServerNotClient)
 
 TEST_F (IPCVersionManagerTest, test_registeredNamespaceOnClientNotServer)
 
 TEST_F (SmartScreenCaptionPresenterTest, test_renderEmptyCaptions)
 
 TEST_F (SmartScreenCaptionPresenterTest, test_renderCaptionsWithBackgroundOrNoneFocusState)
 
 TEST_F (SmartScreenCaptionPresenterTest, test_renderCaptionsHappyCase)
 
 TEST_F (SmartScreenCaptionStateManagerTest, test_getCaptionSettingWhenDatabaseReturnsTrue)
 
 TEST_F (SmartScreenCaptionStateManagerTest, test_getCaptionSettingWhenDataBaseReturnsFalse)
 
 TEST_F (SmartScreenCaptionStateManagerTest, test_getCaptionSettingWhenDataBaseStorageFailure)
 
 TEST_F (SmartScreenCaptionStateManagerTest, test_setCaptionsEnabled)
 
 TEST_F (SmartScreenCaptionStateManagerTest, test_setCaptionsDisabled)
 
 TEST_F (SmartScreenCaptionStateManagerTest, test_createTableInDatabaseIfItDoesNotExist)
 

Variables

static const std::string componentName = "IPCServerSampleApp"
 
static const std::string tableName = "Settings"
 
static const std::string captionsKey = "CaptionsEnabled"
 
static const std::string captionsEnabledString = "CAPTIONS_ENABLED"
 
static const std::string captionsDisabledString = "CAPTIONS_DISABLED"
 

Function Documentation

◆ CONTROLLER()

static const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::CONTROLLER ( "Controller"  )
static

The Controller string.

◆ FOCUS_MANAGER()

static const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::FOCUS_MANAGER ( "FocusManager"  )
static

The FocusManager string.

◆ SESSION_SETUP()

static const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::SESSION_SETUP ( "SessionSetup"  )
static

The SessionSetup string.

◆ TEST_F() [1/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionPresenterTest  ,
test_renderEmptyCaptions   
)

Test for empty captions

◆ TEST_F() [2/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_serverClientVersionEqual   
)

Test version equality

◆ TEST_F() [3/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionPresenterTest  ,
test_renderCaptionsWithBackgroundOrNoneFocusState   
)

Test for Non-Foreground focus state

◆ TEST_F() [4/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_highServerVersion   
)

Test server version higher than client version

◆ TEST_F() [5/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionPresenterTest  ,
test_renderCaptionsHappyCase   
)

Test for normal render captions

◆ TEST_F() [6/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_highClientVersion   
)

Test client version higher than server version

◆ TEST_F() [7/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_mixedMismatch   
)

Test mixed server client mismatch

◆ TEST_F() [8/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_mixedMismatchDocument   
)

Test server client mismatch document

◆ TEST_F() [9/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionStateManagerTest  ,
test_getCaptionSettingWhenDatabaseReturnsTrue   
)

Tests getCaptions on true value

◆ TEST_F() [10/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_mixedMiddleEntryMismatchDocument   
)

Test server client mismatch document when a namespace version entry in the middle is mismatched

◆ TEST_F() [11/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionStateManagerTest  ,
test_getCaptionSettingWhenDataBaseReturnsFalse   
)

Tests getCaptions on false value

◆ TEST_F() [12/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_registeredNamespaceOnServerNotClient   
)

Test server has namespace registered but client does not

◆ TEST_F() [13/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionStateManagerTest  ,
test_getCaptionSettingWhenDataBaseStorageFailure   
)

Tests getCaptions on database error

◆ TEST_F() [14/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( IPCVersionManagerTest  ,
test_registeredNamespaceOnClientNotServer   
)

Test client has namespace registered but server does not

◆ TEST_F() [15/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionStateManagerTest  ,
test_setCaptionsEnabled   
)

Tests set captions enabled

◆ TEST_F() [16/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionStateManagerTest  ,
test_setCaptionsDisabled   
)

Tests set captions disabled

◆ TEST_F() [17/17]

alexaClientSDK::sampleApplications::ipcServerSampleApp::test::TEST_F ( SmartScreenCaptionStateManagerTest  ,
test_createTableInDatabaseIfItDoesNotExist   
)

Create table if it does not exist

Variable Documentation

◆ captionsDisabledString

const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::captionsDisabledString = "CAPTIONS_DISABLED"
static

◆ captionsEnabledString

const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::captionsEnabledString = "CAPTIONS_ENABLED"
static

◆ captionsKey

const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::captionsKey = "CaptionsEnabled"
static

◆ componentName

const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::componentName = "IPCServerSampleApp"
static

◆ tableName

const std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::test::tableName = "Settings"
static

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