AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
UserInactivityMonitorTest.cpp File Reference
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <acsdkShutdownManagerInterfaces/MockShutdownNotifier.h>
#include <AVSCommon/AVS/MessageRequest.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveSequencer.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include <AVSCommon/SDKInterfaces/MockUserInactivityMonitorObserver.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <ADSL/DirectiveSequencer.h>
#include "System/UserInactivityMonitor.h"
Include dependency graph for UserInactivityMonitorTest.cpp:

Classes

class  alexaClientSDK::capabilityAgents::system::test::UserInactivityMonitorTest
 Test harness for UserInactivityMonitor class. More...
 

Namespaces

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

Functions

static bool alexaClientSDK::capabilityAgents::system::test::checkMessageRequest (std::shared_ptr< MessageRequest > messageRequest)
 
static bool alexaClientSDK::capabilityAgents::system::test::checkMessageRequestAndReleaseTrigger (std::shared_ptr< MessageRequest > messageRequest)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, testTimer_createSuccessfully)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, test_createWithError)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, test_createUserInactivityMonitorInterfaceWithError)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, test_createUserInactivityMonitorInterface)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, testTimer_handleDirectiveProperly)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, testTimer_sendMultipleReports)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, test_verifyInactivityTime)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (UserInactivityMonitorTest, test_sendMultipleReportsWithReset)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::system::test::USER_INACTIVITY_RESET_NAMESPACE = "System"
 This is a string for the namespace we are testing for. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::USER_INACTIVITY_RESET_NAME = "ResetUserInactivity"
 This is a string for the correct name the endpointing directive uses. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::USER_INACTIVITY_MESSAGE_ID = "ABC123DEF"
 This is the string for the message ID used in the directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::USER_INACTIVITY_PAYLOAD_KEY = "inactiveTimeInSeconds"
 
static const std::chrono::milliseconds alexaClientSDK::capabilityAgents::system::test::USER_INACTIVITY_REPORT_PERIOD {100}
 

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