AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Test cases for Event Broadcasting Implementation. More...
Classes | |
class | NotifierDataTest |
Test fixture for NotifierData . More... | |
class | NotifierTest |
Test fixture for Notifier . More... | |
class | NotifierTraitsTest |
Test fixture for NotifierTraits . More... | |
class | ObserverWrapperTest |
Test fixture for ObserverWrapper unit tests. More... | |
Typedefs | |
using | TestNotifier = Notifier< TestObserverInterface > |
Functions | |
TEST_F (NotifierDataTest, test_factory) | |
TEST_F (NotifierDataTest, test_addStrongReferenceAndRemove) | |
TEST_F (NotifierDataTest, test_addStrongReferenceTwiceAndRemove) | |
TEST_F (NotifierDataTest, test_addWeakReferenceAndRemove) | |
TEST_F (NotifierDataTest, test_addWeakReferenceTwiceAndRemove) | |
TEST_F (NotifierDataTest, test_addStrongAndWeakReferenceAndRemove) | |
TEST_F (NotifierDataTest, test_addWeakReferenceAndExpire) | |
TEST_F (NotifierDataTest, test_addWeakAndStrongReferenceAndExpire) | |
TEST_F (NotifierDataTest, test_notifyInFifoOrderWithRemoval) | |
TEST_F (NotifierDataTest, test_notifyInLifoOrderWithRemoval) | |
TEST_F (NotifierTest, test_simplestNotification) | |
TEST_F (NotifierTest, test_notificationOrder) | |
TEST_F (NotifierTest, test_duplicateAdditions) | |
TEST_F (NotifierTest, test_setAddObserverFunction) | |
TEST_F (NotifierTest, test_removingObservers) | |
TEST_F (NotifierTest, test_removingObserversWithNotificationInFifoMode) | |
TEST_F (NotifierTest, test_removingObserversWithNotificationInLifoMode) | |
TEST_F (NotifierTest, test_notificationInReverseOrder) | |
TEST_F (NotifierTest, test_removeWithinCallback) | |
TEST_F (NotifierTest, test_removeAndAdditionWithinReverseOrderCallback) | |
TEST_F (NotifierTest, test_resetSharedPtrWeakPtrCallbackShallNotBeCalled) | |
TEST_F (NotifierTraitsTest, test_toVoidConversion) | |
TEST_F (NotifierTraitsTest, test_fromVoidConversion) | |
TEST_F (NotifierTraitsTest, test_adaptFunction) | |
TEST_F (ObserverWrapperTest, test_strongRefState) | |
TEST_F (ObserverWrapperTest, test_strongReferenceDoesNotExpire) | |
TEST_F (ObserverWrapperTest, test_weakReferenceExpires) | |
TEST_F (ObserverWrapperTest, test_copyConstructStrongRef) | |
TEST_F (ObserverWrapperTest, test_moveConstructStrongRef) | |
TEST_F (ObserverWrapperTest, test_copyConstructWeakRef) | |
TEST_F (ObserverWrapperTest, test_moveConstructWeakRef) | |
Test cases for Event Broadcasting Implementation.
using alexaClientSDK::notifier::test::TestNotifier = typedef Notifier<TestObserverInterface> |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTraitsTest | , |
test_toVoidConversion | |||
) |
Verify conversion to void works.
alexaClientSDK::notifier::test::TEST_F | ( | ObserverWrapperTest | , |
test_strongRefState | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTraitsTest | , |
test_fromVoidConversion | |||
) |
Verify conversion from void works.
alexaClientSDK::notifier::test::TEST_F | ( | ObserverWrapperTest | , |
test_strongReferenceDoesNotExpire | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | ObserverWrapperTest | , |
test_weakReferenceExpires | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTraitsTest | , |
test_adaptFunction | |||
) |
Verify function adapter works.
alexaClientSDK::notifier::test::TEST_F | ( | ObserverWrapperTest | , |
test_copyConstructStrongRef | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_factory | |||
) |
Verify factory returns valid pointer.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_simplestNotification | |||
) |
Verify the simplest case of notifying an observer.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_addStrongReferenceAndRemove | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | ObserverWrapperTest | , |
test_moveConstructStrongRef | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | ObserverWrapperTest | , |
test_copyConstructWeakRef | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_notificationOrder | |||
) |
Verify the order in which observers are notified.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_addStrongReferenceTwiceAndRemove | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | ObserverWrapperTest | , |
test_moveConstructWeakRef | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_addWeakReferenceAndRemove | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_duplicateAdditions | |||
) |
Verify duplicate additions are ignored.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_addWeakReferenceTwiceAndRemove | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_addStrongAndWeakReferenceAndRemove | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_setAddObserverFunction | |||
) |
Verify addObserverFunc is called on adding an observer when it is set before and after setAddObserverFunction.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_addWeakReferenceAndExpire | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_removingObservers | |||
) |
Verify removal of observers.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_addWeakAndStrongReferenceAndExpire | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_notifyInFifoOrderWithRemoval | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_removingObserversWithNotificationInFifoMode | |||
) |
Verify removal of observers.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierDataTest | , |
test_notifyInLifoOrderWithRemoval | |||
) |
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_removingObserversWithNotificationInLifoMode | |||
) |
Verify removal of observers.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_notificationInReverseOrder | |||
) |
Verify notification of observers in the reverse order.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_removeWithinCallback | |||
) |
Verify removal of observer from within callback.
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_removeAndAdditionWithinReverseOrderCallback | |||
) |
Verify removal and addition of observers from within callback during reverse order notify. Verify that removing an item not yet visited will result in the removed item not getting notified. Verify that adding an item during notification will not result in the new item getting visited (and that notifyObserversInReverse()
will return false).
alexaClientSDK::notifier::test::TEST_F | ( | NotifierTest | , |
test_resetSharedPtrWeakPtrCallbackShallNotBeCalled | |||
) |
Verify that when weak_ptr observer is expired (the underlying shared_ptr is reset), that the weak_ptr observer will not get the notification.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0