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

Classes

class  DoNotDisturbCapabilityAgentTest
 Test harness for DoNotDisturbCapabilityAgent class. More...
 

Functions

static const std::chrono::seconds MY_WAIT_TIMEOUT (2)
 Amount of time for the test to wait for event to be sent. More...
 
 TEST_F (DoNotDisturbCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail)
 
 TEST_F (DoNotDisturbCapabilityAgentTest, test_givenValidSetDNDDirective_handleDirective_shouldSucceed)
 
 TEST_F (DoNotDisturbCapabilityAgentTest, test_beingOnline_applyLocalChange_shouldSendReport)
 
 TEST_F (DoNotDisturbCapabilityAgentTest, test_beingOffline_applyLocalChangeAndBecomeOnline_shouldSendChanged)
 
 TEST_F (DoNotDisturbCapabilityAgentTest, test_whileSendingChangedEvent_sendChangedFail_shouldSendReport)
 

Variables

static const std::string SETDNDMODE_DIRECTIVE_VALID_JSON_STRING
 A sample Directive JSON string for the purposes of creating an AVSDirective object. More...
 
static const std::string DND_REPORT_EVENT = "ReportDoNotDisturb"
 "Report" event for DoNotDisturb API More...
 
static const std::string DND_CHANGE_EVENT = "DoNotDisturbChanged"
 "Changed" event for DoNotDisturb API More...
 

Function Documentation

◆ MY_WAIT_TIMEOUT()

static const std::chrono::seconds alexaClientSDK::capabilityAgents::doNotDisturb::test::MY_WAIT_TIMEOUT ( )
static

Amount of time for the test to wait for event to be sent.

◆ TEST_F() [1/5]

alexaClientSDK::capabilityAgents::doNotDisturb::test::TEST_F ( DoNotDisturbCapabilityAgentTest  ,
test_givenInvalidParameters_create_shouldFail   
)

◆ TEST_F() [2/5]

alexaClientSDK::capabilityAgents::doNotDisturb::test::TEST_F ( DoNotDisturbCapabilityAgentTest  ,
test_givenValidSetDNDDirective_handleDirective_shouldSucceed   
)

◆ TEST_F() [3/5]

alexaClientSDK::capabilityAgents::doNotDisturb::test::TEST_F ( DoNotDisturbCapabilityAgentTest  ,
test_beingOnline_applyLocalChange_shouldSendReport   
)

◆ TEST_F() [4/5]

alexaClientSDK::capabilityAgents::doNotDisturb::test::TEST_F ( DoNotDisturbCapabilityAgentTest  ,
test_beingOffline_applyLocalChangeAndBecomeOnline_shouldSendChanged   
)

◆ TEST_F() [5/5]

alexaClientSDK::capabilityAgents::doNotDisturb::test::TEST_F ( DoNotDisturbCapabilityAgentTest  ,
test_whileSendingChangedEvent_sendChangedFail_shouldSendReport   
)

Variable Documentation

◆ DND_CHANGE_EVENT

const std::string alexaClientSDK::capabilityAgents::doNotDisturb::test::DND_CHANGE_EVENT = "DoNotDisturbChanged"
static

"Changed" event for DoNotDisturb API

◆ DND_REPORT_EVENT

const std::string alexaClientSDK::capabilityAgents::doNotDisturb::test::DND_REPORT_EVENT = "ReportDoNotDisturb"
static

"Report" event for DoNotDisturb API

◆ SETDNDMODE_DIRECTIVE_VALID_JSON_STRING

const std::string alexaClientSDK::capabilityAgents::doNotDisturb::test::SETDNDMODE_DIRECTIVE_VALID_JSON_STRING
static
Initial value:
= R"delim(
{
"directive": {
"header": {
"namespace": "DoNotDisturb",
"name": "SetDoNotDisturb",
"messageId": "12345"
},
"payload": {
"enabled": true
}
}
})delim"

A sample Directive JSON string for the purposes of creating an AVSDirective object.

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