AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions
alexaClientSDK::acl::test Namespace Reference

Classes

class  AVSConnectionManagerTest
 Test harness for AVSConnectionManager class. More...
 
class  MessageRouterTest
 
class  MockAuthDelegate
 
class  MockConnectionStatusObserver
 This class allows us to test ConnectionStatusObserver interaction. More...
 
class  MockEventTracer
 
class  MockMessageConsumer
 
class  MockMessageObserver
 This class allows us to test MessageObserver interaction. More...
 
class  MockMessageRequest
 
class  MockMessageRouter
 
class  MockMimeResponseSink
 
class  MockPostConnect
 
class  MockPostConnectFactory
 
class  MockTransportFactory
 
class  TestableConsumer
 
class  TestableMessageRouter
 

Functions

 TEST_F (AVSConnectionManagerTest, test_create)
 
 TEST_F (AVSConnectionManagerTest, test_createWithNullMessageRouterAndObservers)
 
 TEST_F (AVSConnectionManagerTest, test_addConnectionStatusObserverNull)
 
 TEST_F (AVSConnectionManagerTest, test_addConnectionStatusObserverValid)
 
 TEST_F (AVSConnectionManagerTest, test_removeConnectionStatusObserverNull)
 
 TEST_F (AVSConnectionManagerTest, test_addMessageObserverNull)
 
 TEST_F (AVSConnectionManagerTest, test_removeMessageObserverNull)
 
 TEST_F (AVSConnectionManagerTest, test_enableAndDisableFunction)
 
 TEST_F (AVSConnectionManagerTest, test_sendMessageRequest)
 
 TEST_F (AVSConnectionManagerTest, test_setAVSGateway)
 
 TEST_F (AVSConnectionManagerTest, getAVSGatewayTest)
 
 TEST_F (AVSConnectionManagerTest, test_enabledOnConnectStatusChangedToFalse)
 
 TEST_F (AVSConnectionManagerTest, test_enabledOnConnectStatusChangedToTrue)
 
 TEST_F (AVSConnectionManagerTest, test_disabledOnConnectStatusChanged)
 
 TEST_F (MessageRouterTest, test_getConnectionStatusReturnsDisconnectedBeforeConnect)
 
 TEST_F (MessageRouterTest, test_getConnectionStatusReturnsPendingAfterConnectingStarts)
 
 TEST_F (MessageRouterTest, test_getConnectionStatusReturnsConnectedAfterConnectionEstablished)
 
 TEST_F (MessageRouterTest, test_getConnectionStatusReturnsConnectedAfterDisconnected)
 
 TEST_F (MessageRouterTest, test_ensureTheMessageRouterObserverIsInformedOfConnectionPendingAfterConnect)
 
 TEST_F (MessageRouterTest, test_ensureTheMessageRouterObserverIsInformedOfNewConnection)
 
 TEST_F (MessageRouterTest, test_ensureTheMessageRouterObserverIsInformedOfTransportDisconnection)
 
 TEST_F (MessageRouterTest, test_ensureTheMessageRouterObserverIsInformedOfRouterDisconnection)
 
 TEST_F (MessageRouterTest, test_sendIsSuccessfulWhenConnected)
 
 TEST_F (MessageRouterTest, test_sendFailsWhenDisconnected)
 
 TEST_F (MessageRouterTest, test_sendFailsWhenPending)
 
 TEST_F (MessageRouterTest, test_sendMessageDoesNotSendAfterDisconnected)
 
 TEST_F (MessageRouterTest, testTimer_shutdownCalledWithMultipleMessages)
 
 TEST_F (MessageRouterTest, test_serverSideDisconnectWithLongDelayedReconnectReportsPending)
 
 TEST_F (MessageRouterTest, test_serverSideDisconnectWithReconnectDoesNotReportingPending)
 
 TEST_F (MessageRouterTest, test_onReceive)
 
 TEST_F (MessageRouterTest, test_onConnectionStatusChanged)
 
 TEST_F (MessageRouterTest, test_enableTwiceOnPendingTransport)
 
 TEST_F (MessageRouterTest, test_onConnectedOnInactiveTransport)
 
 TEST_F (MessageRouterTest, setAndGetAVSGateway)
 

Function Documentation

◆ TEST_F() [1/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_getConnectionStatusReturnsDisconnectedBeforeConnect   
)

◆ TEST_F() [2/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_getConnectionStatusReturnsPendingAfterConnectingStarts   
)

◆ TEST_F() [3/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_getConnectionStatusReturnsConnectedAfterConnectionEstablished   
)

◆ TEST_F() [4/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_getConnectionStatusReturnsConnectedAfterDisconnected   
)

◆ TEST_F() [5/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_ensureTheMessageRouterObserverIsInformedOfConnectionPendingAfterConnect   
)

◆ TEST_F() [6/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_ensureTheMessageRouterObserverIsInformedOfNewConnection   
)

◆ TEST_F() [7/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_ensureTheMessageRouterObserverIsInformedOfTransportDisconnection   
)

◆ TEST_F() [8/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_ensureTheMessageRouterObserverIsInformedOfRouterDisconnection   
)

◆ TEST_F() [9/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_sendIsSuccessfulWhenConnected   
)

◆ TEST_F() [10/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_create   
)

Test create with valid messageRouter, ConnectionStatusObserver, MessageObservers

◆ TEST_F() [11/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_sendFailsWhenDisconnected   
)

◆ TEST_F() [12/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_createWithNullMessageRouterAndObservers   
)

Test create with different combinations of messageRouter, ConnectionStatusObserver, MessageObservers, InternetConnectionMonitor.

◆ TEST_F() [13/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_sendFailsWhenPending   
)

◆ TEST_F() [14/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_sendMessageDoesNotSendAfterDisconnected   
)

◆ TEST_F() [15/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
testTimer_shutdownCalledWithMultipleMessages   
)

◆ TEST_F() [16/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_addConnectionStatusObserverNull   
)

Test addConnectionStatusObserver with a nullptr observer, expecting no errors.

◆ TEST_F() [17/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_addConnectionStatusObserverValid   
)

Test with addConnectionStatusObserver with MockConnectionStatusObserver.

◆ TEST_F() [18/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_removeConnectionStatusObserverNull   
)

Test removeConnectionStatusObserver with a nullptr observer, expecting no errors.

◆ TEST_F() [19/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_serverSideDisconnectWithLongDelayedReconnectReportsPending   
)

◆ TEST_F() [20/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_addMessageObserverNull   
)

Test addMessageObserver with a nullptr observer, expecting no errors.

◆ TEST_F() [21/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_removeMessageObserverNull   
)

Test removeMessageObserver with a nullptr observer, expecting no errors.

◆ TEST_F() [22/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_enableAndDisableFunction   
)

Test enable and disable function of AVSConnectionManager

◆ TEST_F() [23/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_sendMessageRequest   
)

Tests sendMessage with a nullptr request, expecting no errors.

◆ TEST_F() [24/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_setAVSGateway   
)

Test setAVSGateway and expect a call to messageRouter's setAVSGateway.

◆ TEST_F() [25/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
getAVSGatewayTest   
)

Test getAVSGateway and expect a call to messageRouter's getAVSGateway.

◆ TEST_F() [26/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_serverSideDisconnectWithReconnectDoesNotReportingPending   
)

◆ TEST_F() [27/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_enabledOnConnectStatusChangedToFalse   
)

Test that onConnectionStatusChanged(false) results in prompting MessageRouter to verify the connection.

◆ TEST_F() [28/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_enabledOnConnectStatusChangedToTrue   
)

Test that onConnectionStatusChanged(true) results in prompting MessageRouter to reconnect.

◆ TEST_F() [29/34]

alexaClientSDK::acl::test::TEST_F ( AVSConnectionManagerTest  ,
test_disabledOnConnectStatusChanged   
)

Test that onConnectionStatusChanged() results in no reconnect attempts or connectivity checks.

◆ TEST_F() [30/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_onReceive   
)

This tests the calling of private method receive() for MessageRouterObserver from MessageRouter

◆ TEST_F() [31/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_onConnectionStatusChanged   
)

This tests the calling of private method onConnectionStatusChanged() for MessageRouterObserver from MessageRouter

◆ TEST_F() [32/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_enableTwiceOnPendingTransport   
)

Verify that when enable is called with active connection is pending we don't create a new connection.

◆ TEST_F() [33/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
test_onConnectedOnInactiveTransport   
)

Verify that if onConnected is called for inactive transport, we don't notify the observers and closing the connection.

◆ TEST_F() [34/34]

alexaClientSDK::acl::test::TEST_F ( MessageRouterTest  ,
setAndGetAVSGateway   
)

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