![]()  | 
  
    AlexaClientSDK
    3.0.0
    
   A cross-platform, modular SDK for interacting with the Alexa Voice Service 
   | 
 
Classes | |
| class | InputControllerCapabilityAgentTest | 
Test harness for InputControllerCapabilityAgentTest class.  More... | |
| class | MockHandler | 
Functions | |
| static std::chrono::milliseconds | TIMEOUT (1000) | 
| Timeout when waiting for futures to be set.  More... | |
| static const std::string | TIME_OF_SAMPLE_TEST ("2017-02-03T16:20:50.523Z") | 
| Time of sample used for testing.  More... | |
| static const endpoints::EndpointIdentifier | TEST_ENDPOINT_ID ("testEndpointId") | 
| The test EndpointId.  More... | |
| static const std::string | EVENT ("event") | 
| Event key.  More... | |
| static const std::string | HEADER ("header") | 
| Header key.  More... | |
| static const std::string | MESSAGE_ID ("messageId") | 
| MessageId key.  More... | |
| static const std::string | MESSAGE_ID_TEST ("MessageId_Test") | 
| MessageId for testing.  More... | |
| static const std::string | DIALOG_REQUEST_ID ("dialogRequestId") | 
| Dialog request Id key.  More... | |
| static const std::string | DIALOG_REQUEST_ID_TEST ("DialogRequestId_Test") | 
| DialogRequestId for testing.  More... | |
| static const std::string | CORRELATION_TOKEN_TEST ("CorrelationToken_Test") | 
| Correlation token for testing.  More... | |
| static const std::string | EVENT_CORRELATION_TOKEN_TEST ("EventCorrelationToken_Test") | 
| Event correlation for testing.  More... | |
| static std::shared_ptr< AVSDirective > | buildAVSDirective (std::string directiveName, std::string payload, std::string messageId=MESSAGE_ID_TEST) | 
| TEST_F (InputControllerCapabilityAgentTest, test_givenInvalidParameters_create_shouldFail) | |
| Test that create() returns a nullptr if called with invalid arguments.  More... | |
| TEST_F (InputControllerCapabilityAgentTest, test_selectInputDirective_successCase) | |
| TEST_F (InputControllerCapabilityAgentTest, test_selectInputDirective_errorCase) | |
| TEST_F (InputControllerCapabilityAgentTest, test_reportStateChange_successCase) | |
| TEST_F (InputControllerCapabilityAgentTest, test_unknownInvalidDirective) | |
Variables | |
| static const std::string | NAMESPACE {"Alexa.InputController"} | 
| The namespace for capability agent.  More... | |
| static const std::string | INTERFACE_VERSION {"3"} | 
| The supported version.  More... | |
| static const std::string | NAME_SETMODE {"SelectInput"} | 
| The name for SelectInput directive.  More... | |
| static const std::string | UNKNOWN_DIRECTIVE {"Unknown"} | 
| An unknown directive signature.  More... | |
| static const std::string | INPUT_PROPERTY_NAME {"input"} | 
| The name for modeValue property.  More... | |
| static const Input | CD_INPUT_TEST = Input::CD | 
| CD Input string for testing.  More... | |
| static const Input | HDMI_1_INPUT_TEST = Input::HDMI_1 | 
| HDMI 1 Input string for testing.  More... | |
| static const InputControllerInterface::SupportedInputs | DEFAULT_ALLOWED_INPUT | 
| static const std::string | SELECT_INPUT_DIRECTIVE_JSON_STRING | 
| A simple SelectInput directive JSON string.  More... | |
| static const std::string | SELECT_INPUT_UNSUPPORTED_DIRECTIVE_JSON_STRING | 
| A simple SelectInput directive JSON string.  More... | |
| static const std::string | SELECT_INPUT_MISSING_TAG_DIRECTIVE_JSON_STRING | 
| A SelectInput directive without input field.  More... | |
| static const std::string | SELECT_INPUT_EMPTY_INPUT_DIRECTIVE_JSON_STRING | 
| A SelectInput directive with an empty input.  More... | |
      
  | 
  static | 
Utility function to build the AVSDirective for test.
| directiveName | The name of the test directive to build. | 
| payload | The unparsed payload of directive in JSON. | 
nullptr if build failed. 
      
  | 
  static | 
Correlation token for testing.
      
  | 
  static | 
Dialog request Id key.
      
  | 
  static | 
DialogRequestId for testing.
      
  | 
  static | 
Event key.
      
  | 
  static | 
Event correlation for testing.
      
  | 
  static | 
Header key.
      
  | 
  static | 
MessageId key.
      
  | 
  static | 
MessageId for testing.
      
  | 
  static | 
The test EndpointId.
| alexaClientSDK::alexaInputController::test::TEST_F | ( | InputControllerCapabilityAgentTest | , | 
| test_givenInvalidParameters_create_shouldFail | |||
| ) | 
Test that create() returns a nullptr if called with invalid arguments.
| alexaClientSDK::alexaInputController::test::TEST_F | ( | InputControllerCapabilityAgentTest | , | 
| test_selectInputDirective_successCase | |||
| ) | 
Test successful handling of SelectInput directive.
| alexaClientSDK::alexaInputController::test::TEST_F | ( | InputControllerCapabilityAgentTest | , | 
| test_selectInputDirective_errorCase | |||
| ) | 
Test error path of SelectInput directive.
| alexaClientSDK::alexaInputController::test::TEST_F | ( | InputControllerCapabilityAgentTest | , | 
| test_reportStateChange_successCase | |||
| ) | 
Test triggering of reportStateChange and subsequent call to the ContextManager to build the context.
| alexaClientSDK::alexaInputController::test::TEST_F | ( | InputControllerCapabilityAgentTest | , | 
| test_unknownInvalidDirective | |||
| ) | 
Tests unknown Directives. Expect that the sendExceptionEncountered and setFailed will be called.
      
  | 
  static | 
Time of sample used for testing.
      
  | 
  static | 
Timeout when waiting for futures to be set.
      
  | 
  static | 
CD Input string for testing.
      
  | 
  static | 
      
  | 
  static | 
HDMI 1 Input string for testing.
      
  | 
  static | 
The name for modeValue property.
      
  | 
  static | 
The supported version.
      
  | 
  static | 
The name for SelectInput directive.
      
  | 
  static | 
The namespace for capability agent.
      
  | 
  static | 
A simple SelectInput directive JSON string.
      
  | 
  static | 
A SelectInput directive with an empty input.
      
  | 
  static | 
A SelectInput directive without input field.
      
  | 
  static | 
A simple SelectInput directive JSON string.
      
  | 
  static | 
An unknown directive signature.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0