AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
DoNotDisturbCapabilityAgentTest.cpp File Reference
#include <memory>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveSequencer.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include <Settings/MockDeviceSettingStorage.h>
#include "acsdkDoNotDisturb/DoNotDisturbCapabilityAgent.h"
Include dependency graph for DoNotDisturbCapabilityAgentTest.cpp:

Classes

class  alexaClientSDK::capabilityAgents::doNotDisturb::test::DoNotDisturbCapabilityAgentTest
 Test harness for DoNotDisturbCapabilityAgent class. More...
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::capabilityAgents
 
 alexaClientSDK::capabilityAgents::doNotDisturb
 
 alexaClientSDK::capabilityAgents::doNotDisturb::test
 

Functions

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

Variables

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

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