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

Classes

class  DeviceSetupTest
 

Functions

 MATCHER_P3 (EventNamed, expectedNameSpace, expectedName, expectedAssistedSetup, "")
 
 TEST_F (DeviceSetupTest, constructorNullptr)
 Tests the constructor with nullptr as arguments. More...
 
 TEST_F (DeviceSetupTest, sendDeviceSetupComplete)
 Tests that sendDeviceSetupComplete sends an event. More...
 
 TEST_F (DeviceSetupTest, sendDevicesSetupCompleteFails)
 Tests that if sending an event fails, sendDevicesSetupComplete returns false. More...
 
 TEST_F (DeviceSetupTest, sendDevicesSetupCompleteException)
 Tests that receiving an exception upon sendDevicesSetupComplete. More...
 
 TEST_F (DeviceSetupTest, sendDevicesSetupCompleteMultiple)
 Test sending multiple requests and distinguish between them. More...
 

Variables

static const std::string DEVICE_SETUP_NAMESPACE {"DeviceSetup"}
 The namespace for Device Setup. More...
 
static const std::string SETUP_COMPLETED_EVENT {"SetupCompleted"}
 The SetupCompleted event. More...
 
static std::chrono::seconds TIMEOUT {5}
 A long timeout to ensure that an event does occur. More...
 

Function Documentation

◆ MATCHER_P3()

alexaClientSDK::acsdkDeviceSetup::test::MATCHER_P3 ( EventNamed  ,
expectedNameSpace  ,
expectedName  ,
expectedAssistedSetup  ,
""   
)

Custom matcher to check an event with the correct assistedSetup value is sent. Returns true if the event matching that criteria is sent.

Parameters
expectedNamespaceThe expected namespace of the event.
expectedNameThe expected name of the event.
assistedSetupThe expected assistedSetup of the event.
Returns
true if an event matching the criteria is sent, false otherwise.

◆ TEST_F() [1/5]

alexaClientSDK::acsdkDeviceSetup::test::TEST_F ( DeviceSetupTest  ,
constructorNullptr   
)

Tests the constructor with nullptr as arguments.

◆ TEST_F() [2/5]

alexaClientSDK::acsdkDeviceSetup::test::TEST_F ( DeviceSetupTest  ,
sendDeviceSetupComplete   
)

Tests that sendDeviceSetupComplete sends an event.

◆ TEST_F() [3/5]

alexaClientSDK::acsdkDeviceSetup::test::TEST_F ( DeviceSetupTest  ,
sendDevicesSetupCompleteFails   
)

Tests that if sending an event fails, sendDevicesSetupComplete returns false.

◆ TEST_F() [4/5]

alexaClientSDK::acsdkDeviceSetup::test::TEST_F ( DeviceSetupTest  ,
sendDevicesSetupCompleteException   
)

Tests that receiving an exception upon sendDevicesSetupComplete.

◆ TEST_F() [5/5]

alexaClientSDK::acsdkDeviceSetup::test::TEST_F ( DeviceSetupTest  ,
sendDevicesSetupCompleteMultiple   
)

Test sending multiple requests and distinguish between them.

Variable Documentation

◆ DEVICE_SETUP_NAMESPACE

const std::string alexaClientSDK::acsdkDeviceSetup::test::DEVICE_SETUP_NAMESPACE {"DeviceSetup"}
static

The namespace for Device Setup.

◆ SETUP_COMPLETED_EVENT

const std::string alexaClientSDK::acsdkDeviceSetup::test::SETUP_COMPLETED_EVENT {"SetupCompleted"}
static

The SetupCompleted event.

◆ TIMEOUT

std::chrono::seconds alexaClientSDK::acsdkDeviceSetup::test::TIMEOUT {5}
static

A long timeout to ensure that an event does occur.

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