AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
RevokeAuthorizationHandlerTest.cpp File Reference
#include <chrono>
#include <condition_variable>
#include <thread>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <ADSL/DirectiveSequencer.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/AVS/MessageRequest.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockRevokeAuthorizationObserver.h>
#include "System/RevokeAuthorizationHandler.h"
Include dependency graph for RevokeAuthorizationHandlerTest.cpp:

Classes

class  alexaClientSDK::capabilityAgents::system::test::RevokeAuthorizationHandlerTest
 Test harness for RevokeAuthorizationHandler class. More...
 

Namespaces

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

Functions

static void alexaClientSDK::capabilityAgents::system::test::notifyExit ()
 
static std::shared_ptr< AVSDirective > alexaClientSDK::capabilityAgents::system::test::createDirective ()
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_createSuccessfully)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_createWithError)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_handleDirectiveProperly)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_handleDirectiveImmediatelyProperly)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_handleDirectiveImmediatelyNullDirective)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_handleDirectiveNullDirectiveInfo)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_cancelDirectiveNullDirectiveInfo)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_removeObserverSuccessfully)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_preHandleDirective)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_addObserverIgnoreNullPtr)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (RevokeAuthorizationHandlerTest, test_removeObserverIgnoreNullPtr)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::system::test::REVOKE_NAMESPACE = "System"
 This is a string for the namespace we are testing for. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::REVOKE_DIRECTIVE_NAME = "RevokeAuthorization"
 This is a string for the correct name the RevokeAuthorization directive uses. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::REVOKE_PAYLOAD = "{}"
 This is the full payload expected to come from AVS. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::REVOKE_MESSAGE_ID = "ABC123DEF"
 This is the string for the message ID used in the directive. More...
 
static const std::chrono::nanoseconds alexaClientSDK::capabilityAgents::system::test::SHORT_DIRECTIVE_DELAY
 This is a short delay tests can use when waiting for a directive. More...
 
std::condition_variable alexaClientSDK::capabilityAgents::system::test::exitTrigger
 This is the condition variable to be used to control the exit of the test case. 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