AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Macros | Functions
ContextManagerTest.cpp File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <AVSCommon/Utils/WaitEvent.h>
#include "ContextManager/ContextManager.h"
Include dependency graph for ContextManagerTest.cpp:

Classes

class  alexaClientSDK::contextManager::test::MockStateProvider
 Mock state provider. More...
 
struct  alexaClientSDK::contextManager::test::MockLegacyStateProvider
 Mock legacy state provider. More...
 
struct  alexaClientSDK::contextManager::test::MockContextRequester
 Mock context requester. More...
 
struct  alexaClientSDK::contextManager::test::MockContextObserver
 Mock context observer. More...
 
class  alexaClientSDK::contextManager::test::ContextManagerTest
 Context Manager Test. More...
 

Namespaces

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

Macros

#define TAG   "ContextManagerTest"
 String to identify log entries originating from this file. More...
 
#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_setStateForLegacyRegisteredProvider)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_setStateForUnregisteredLegacyProvider)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getContextLegacyProvider)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_setLegacyStateProviderSetStateTwiceShouldFail)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_provideStateTimeout)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_incorrectToken)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_sometimesProviderWithValidState)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_sometimesProviderWithEmptyState)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_neverProvider)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getEndpointContextShouldIncludeOnlyRelevantStates)
 Test that only context relevant to the given endpoint is included in the getContext. More...
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getContextWhenStateAndCacheAreUnavailableShouldFail)
 Test that requester will get notified of a failure when one provider was not able to provide its state. More...
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getContextWhenStateUnavailableShouldReturnCache)
 Test that requester will get cached value when provider cannot provide latest state. More...
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_reportStateChangeShouldNotifyObserver)
 Test that report state change notifies the ContextManagerObserverInterface. More...
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getContextInParallelShouldSucceed)
 Test that getContext can handle multiple getContext at the same time. More...
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getContextWithoutReportableStateProperties)
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getContextWithReportableStateProperties)
 Test if the getContext() method includes state from StateProviders which have reportable state properties. More...
 
 alexaClientSDK::contextManager::test::TEST_F (ContextManagerTest, test_getContextShouldReturnCache)
 Test that requester will get cached value when provider set shouldQueryState to false. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
Theevent string for this LogEntry.

◆ TAG

#define TAG   "ContextManagerTest"

String to identify log entries originating from this file.

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