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

Classes

class  MockMRMHandler
 
class  MRMCapabilityAgentTest
 Test harness for MRMCapabilityAgent class. More...
 
class  SynchronizedInvocation
 
class  WaitableExceptionEncounteredSender
 

Functions

 TEST_F (MRMCapabilityAgentTest, test_create)
 
 TEST_F (MRMCapabilityAgentTest, test_getConfiguration)
 
 TEST_F (MRMCapabilityAgentTest, test_getVersionString)
 
 TEST_F (MRMCapabilityAgentTest, test_handleMRMDirective)
 
 TEST_F (MRMCapabilityAgentTest, test_onSpeakerSettingsChanged)
 
 TEST_F (MRMCapabilityAgentTest, test_onUserInactivityReport)
 

Variables

static const std::string TEST_MRM_HANDLER_VERSION_STRING = "test_version_string"
 Test version string which our dummy MRMHandler will return. More...
 
static const auto WAIT_FOR_INVOCATION_LONG_TIMEOUT = std::chrono::milliseconds{100}
 A timeout for things which we expect to occur (so it's long enough for reasonable latency) More...
 
static const auto WAIT_FOR_INVOCATION_SHORT_TIMEOUT = std::chrono::milliseconds{5}
 A timeout for things which we do not expect to occur (so, we will expect this duration to elapse). More...
 
static const std::string TEST_DIRECTIVE_JSON_STRING
 A sample Directive JSON string for the purposes of creating an AVSDirective object. More...
 

Function Documentation

◆ TEST_F() [1/6]

alexaClientSDK::capabilityAgents::mrm::test::TEST_F ( MRMCapabilityAgentTest  ,
test_create   
)

Test to verify the create function of MRMCapabilityAgent class.

A dummy MRMHandler.

Test all the bad cases. The good case is already tested in SetUp.

◆ TEST_F() [2/6]

alexaClientSDK::capabilityAgents::mrm::test::TEST_F ( MRMCapabilityAgentTest  ,
test_getConfiguration   
)

Test to verify the getConfiguration function of MRMCapabilityAgent class.

◆ TEST_F() [3/6]

alexaClientSDK::capabilityAgents::mrm::test::TEST_F ( MRMCapabilityAgentTest  ,
test_getVersionString   
)

Test to verify the getVersionString function of MRMCapabilityAgent class.

◆ TEST_F() [4/6]

alexaClientSDK::capabilityAgents::mrm::test::TEST_F ( MRMCapabilityAgentTest  ,
test_handleMRMDirective   
)

Test to verify the handleDirective function of MRMHandler class, invoked by the MRMCapabilityAgent class.

◆ TEST_F() [5/6]

alexaClientSDK::capabilityAgents::mrm::test::TEST_F ( MRMCapabilityAgentTest  ,
test_onSpeakerSettingsChanged   
)

Test to verify the onSpeakerSettingsChanged function of MRMHandler class, invoked by the MRMCapabilityAgent class.

◆ TEST_F() [6/6]

alexaClientSDK::capabilityAgents::mrm::test::TEST_F ( MRMCapabilityAgentTest  ,
test_onUserInactivityReport   
)

Test to verify the waitForUserInactivityReport function of MRMHandler class, invoked by the MRMCapabilityAgent class.

Variable Documentation

◆ TEST_DIRECTIVE_JSON_STRING

const std::string alexaClientSDK::capabilityAgents::mrm::test::TEST_DIRECTIVE_JSON_STRING
static
Initial value:
= R"delim(
{
"directive": {
"header": {
"namespace": "MRM",
"name": "TestDirective",
"messageId": "12345"
},
"payload": {
}
}
})delim"

A sample Directive JSON string for the purposes of creating an AVSDirective object.

◆ TEST_MRM_HANDLER_VERSION_STRING

const std::string alexaClientSDK::capabilityAgents::mrm::test::TEST_MRM_HANDLER_VERSION_STRING = "test_version_string"
static

Test version string which our dummy MRMHandler will return.

◆ WAIT_FOR_INVOCATION_LONG_TIMEOUT

const auto alexaClientSDK::capabilityAgents::mrm::test::WAIT_FOR_INVOCATION_LONG_TIMEOUT = std::chrono::milliseconds{100}
static

A timeout for things which we expect to occur (so it's long enough for reasonable latency)

◆ WAIT_FOR_INVOCATION_SHORT_TIMEOUT

const auto alexaClientSDK::capabilityAgents::mrm::test::WAIT_FOR_INVOCATION_SHORT_TIMEOUT = std::chrono::milliseconds{5}
static

A timeout for things which we do not expect to occur (so, we will expect this duration to elapse).

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