AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
CapabilitiesDelegateTest.cpp File Reference
#include <memory>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <AVSCommon/SDKInterfaces/CapabilitiesDelegateObserverInterface.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <AVSCommon/Utils/WaitEvent.h>
#include <CapabilitiesDelegate/CapabilitiesDelegate.h>
#include <CapabilitiesDelegate/PostConnectCapabilitiesPublisher.h>
#include <CapabilitiesDelegate/Storage/CapabilitiesDelegateStorageInterface.h>
#include <CapabilitiesDelegate/Utils/DiscoveryUtils.h>
#include <RegistrationManager/MockCustomerDataManager.h>
#include "MockAuthDelegate.h"
#include "MockCapabilitiesDelegateObserver.h"
#include "MockCapabilitiesStorage.h"
#include "MockDiscoveryEventSender.h"
Include dependency graph for CapabilitiesDelegateTest.cpp:

Classes

struct  alexaClientSDK::capabilitiesDelegate::test::EventData
 
class  alexaClientSDK::capabilitiesDelegate::test::CapabilitiesDelegateTest
 

Namespaces

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

Functions

AVSDiscoveryEndpointAttributes alexaClientSDK::capabilitiesDelegate::test::createEndpointAttributes (const std::string endpointId="TEST_ENDPOINT_ID")
 
AVSDiscoveryEndpointAttributes::Registration alexaClientSDK::capabilitiesDelegate::test::createEndpointRegistration (const std::string productID=TEST_PRODUCT_ID, const std::string serialNumber=TEST_SERIAL_NUMBER, const std::string registrationKey=TEST_REGISTRATION_KEY, const std::string productIdKey=TEST_PRODUCT_ID_KEY)
 
CapabilityConfiguration alexaClientSDK::capabilitiesDelegate::test::createCapabilityConfiguration (const CapabilityConfiguration::AdditionalConfigurations &additionalConfigurationsIn=CapabilityConfiguration::AdditionalConfigurations())
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createMethodWithInvalidParameters)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_init)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_invalidateCapabilities)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_clearData)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_shutdown)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_addCapabilitiesObserver)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_onDiscoveryCompleted)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_onDiscoveryCompletedButStorageFails)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_onDiscoveryFailure)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_addOrUpdateEndpointReturnsFalseWithInvalidInput)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_dynamicAddOrUpdateEndpoint)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_deleteEndpointReturnsFalseWithInvalidInput)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_dynamicDeleteEndpoint)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_dynamicDeleteEndpointWhenEndpointNotRegisteredShouldFail)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithDifferentEndpointConfigs)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithPendingEndpointsWithSameEndpointConfigs)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithoutPendingEndpointsAndSameEndpointConfigs)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationCachesEndpoints)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithStaleEndpointAndWithoutPendingEndpointsAndSameEndpointConfigs)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithStaleEndpoint)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithStaleEndpointAndPendingEndpointsWithSameEndpointConfigs)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithNewEndpointAndPendingEndpointsWithSameEndpointConfigs)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createTwoPostConnectOperationWithStaleEndpointAndPendingEndpointsWithSameEndpointConfigs)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_createPostConnectOperationWithReconnects)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_setDiscoveryEventSenderStopsPreviousDiscoveryEventSender)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_onAVSGatewayChangedNotification)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_reconnectWhenStorageIsEmpty)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_deferSendDiscoveryEventsWhileDiscoveryEventSenderInFlight)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_observerCallingIntoCapabilitiesDelegateOnSuccessNotificationSucceeds)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_doNotSendEndpointsWhileDisconnected)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_reconnectTriggersSendPendingEndpoints)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_duplicateEndpointInPendingAddOrUpdateAndDeleteShouldFail)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_registration)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_addAndUpdateOfDeduplicatedEndpoints)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_deduplictedDeletionFailure)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_SplitMessagePendingDeduplicatedEndpoints)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_endpointLimits)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_updateDeduplicatedEndpointWhenInflight)
 
 alexaClientSDK::capabilitiesDelegate::test::TEST_F (CapabilitiesDelegateTest, test_addDeduplicatedEndpointWhenOtherInflight)
 

Variables

static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_AUTH_TOKEN = "TEST_AUTH_TOKEN"
 Test string for auth token. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::EVENT_KEY = "event"
 The event key in the discovery event. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::HEADER_KEY = "header"
 The header key in the discovery event. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::EVENT_CORRELATION_TOKEN_KEY = "eventCorrelationToken"
 The eventCorrelationToken key in the discovery event. More...
 
static const std::chrono::seconds alexaClientSDK::capabilitiesDelegate::test::MY_WAIT_TIMEOUT {5}
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_CLIENT_ID = "TEST_CLIENT_ID"
 A Test client Id. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_PRODUCT_ID = "TEST_PRODUCT_ID"
 A Test product Id. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_SERIAL_NUMBER = "TEST_SERIAL_NUMBER"
 A Test serial number. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_REGISTRATION_KEY = "TEST_REGISTRATION_KEY"
 A Test product Id. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_PRODUCT_ID_KEY = "TEST_PRODUCT_ID_KEY"
 A Test product Id Key. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_MANUFACTURER_NAME = "TEST_MANUFACTURER_NAME"
 A Test manufacturer name. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_DESCRIPTION = "TEST_DESCRIPTION"
 A Test description. More...
 
static const std::string alexaClientSDK::capabilitiesDelegate::test::TEST_DISPLAY_CATEGORY = "TEST_DISPLAY_CATEGORY"
 A Test display category. 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