AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
EndpointRegistrationManagerTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/AVS/AVSDirective.h>
#include <AVSCommon/AVS/AVSDiscoveryEndpointAttributes.h>
#include <AVSCommon/AVS/CapabilityConfiguration.h>
#include <AVSCommon/SDKInterfaces/CapabilitiesDelegateObserverInterface.h>
#include <AVSCommon/SDKInterfaces/Endpoints/EndpointInterface.h>
#include <AVSCommon/SDKInterfaces/Endpoints/MockEndpoint.h>
#include <AVSCommon/SDKInterfaces/Endpoints/MockEndpointRegistrationObserver.h>
#include <AVSCommon/SDKInterfaces/MockCapabilitiesDelegate.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveHandler.h>
#include <AVSCommon/SDKInterfaces/MockDirectiveSequencer.h>
#include <AVSCommon/Utils/Optional.h>
#include <AVSCommon/Utils/WaitEvent.h>
#include <Endpoints/EndpointRegistrationManager.h>
Include dependency graph for EndpointRegistrationManagerTest.cpp:

Classes

class  alexaClientSDK::endpoints::test::EndpointRegistrationManagerTest
 

Namespaces

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

Typedefs

using alexaClientSDK::endpoints::test::RegistrationResult = EndpointRegistrationManager::RegistrationResult
 
using alexaClientSDK::endpoints::test::DeregistrationResult = EndpointRegistrationManager::DeregistrationResult
 
using alexaClientSDK::endpoints::test::UpdateResult = EndpointRegistrationManager::UpdateResult
 

Functions

 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_createWithNullParametersFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_shutdownResolvesPendingPromises)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerEndpointSucceeds)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_deregisterEndpointSucceeds)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_updateEndpointSucceeds)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerExsitingEndpointFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_deregisterDefaultEndpointFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerEndpointWhenCapabilityRegistrationEndsWithFatalErrorFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerNullEndpointFailsImmediately)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_updateEndpointThatDoesNotExistFailsImmediately)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_deregisterEndpointThatDoesNotExistFailsImmediately)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerEndpointWhileRegistrationInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerEndpointWhileDeregistrationInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerEndpointWhileUpdateInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_deregisterEndpointWhileDeregistrationInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_deregisterEndpointWhileRegistrationInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_deregisterEndpointWhileUpdateInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_updateEndpointWhileRegistrationInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_updateEndpointWhileDeregistrationInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_updateEndpointWhileUpdateInProgressFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerEndpointWithInvalidHandlerFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_registerEndpointWithInvalidCapabilityFails)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_revertWhenUpdateExistingEndpointFailsDueToCapabilityUpdateEndWithFatalFailure)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_revertWhenUpdateExistingEndpointFailsDueToUpdateEndpointFail)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_revertWhenDeregisterEndpointFailsDueToCapabilityRegistrationEndWithFatalFailure)
 
 alexaClientSDK::endpoints::test::TEST_F (EndpointRegistrationManagerTest, test_revertWhenDeregisterEndpointFailsDueToDirectiveHandlerFailure)
 

Variables

static const std::chrono::seconds alexaClientSDK::endpoints::test::MY_WAIT_TIMEOUT {2}
 
static const EndpointIdentifier alexaClientSDK::endpoints::test::DEFAULT_ENDPOINT_ID = "defaultEndpointId"
 The EndpointIdentifier for a mock default endpoint. 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