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

Classes

class  AlexaPresentationAPLVideoConfigParserTest
 Test harness for AlexaPresentationAPLVideoConfigParser class. More...
 

Typedefs

using JSONStream = std::vector< std::shared_ptr< std::istream > >
 Alias for JSON stream type used in ConfigurationNode initialization. More...
 

Functions

 TEST_F (AlexaPresentationAPLVideoConfigParserTest, testSerializeVideoSettings)
 
 TEST_F (AlexaPresentationAPLVideoConfigParserTest, testParseVideoSettingsInvalidVideoKey)
 
 TEST_F (AlexaPresentationAPLVideoConfigParserTest, testParseVideoSettingsInvalidCodecsKey)
 
 TEST_F (AlexaPresentationAPLVideoConfigParserTest, testParseVideoSettingsUnsupportedCodec)
 

Variables

const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_VIDEO_KEY = "video"
 Alexa.Presentation.APL.Video key for video related settings. More...
 
const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_CODECS_KEY = "codecs"
 Alexa.Presentation.APL.Video key for supported codecs. More...
 
const std::string H_264_41 = "H_264_41"
 String representing the H_264_41 codec. More...
 
const std::string H_264_42 = "H_264_42"
 String representing the H_264_42 codec. More...
 
const std::string APL_VIDEO_CONFIG
 
const std::string INVALID_KEY = "invalidKey"
 
const std::string APL_VIDEO_CONFIG_INVALID_VIDEO_KEY
 
const std::string APL_VIDEO_CONFIG_INVALID_CODECS_KEY
 
const std::string UNSUPPORTED_CODEC = "unsupportedCodec"
 
const std::string APL_VIDEO_CONFIG_UNSUPPORTED_CODEC
 

Typedef Documentation

◆ JSONStream

using alexaClientSDK::aplCapabilityAgent::test::JSONStream = typedef std::vector<std::shared_ptr<std::istream> >

Alias for JSON stream type used in ConfigurationNode initialization.

Function Documentation

◆ TEST_F() [1/4]

alexaClientSDK::aplCapabilityAgent::test::TEST_F ( AlexaPresentationAPLVideoConfigParserTest  ,
testSerializeVideoSettings   
)

Tests video settings serialization.

◆ TEST_F() [2/4]

alexaClientSDK::aplCapabilityAgent::test::TEST_F ( AlexaPresentationAPLVideoConfigParserTest  ,
testParseVideoSettingsInvalidVideoKey   
)

Tests parsing video settings with invalid video key.

◆ TEST_F() [3/4]

alexaClientSDK::aplCapabilityAgent::test::TEST_F ( AlexaPresentationAPLVideoConfigParserTest  ,
testParseVideoSettingsInvalidCodecsKey   
)

Tests parsing video settings with invalid codecs key.

◆ TEST_F() [4/4]

alexaClientSDK::aplCapabilityAgent::test::TEST_F ( AlexaPresentationAPLVideoConfigParserTest  ,
testParseVideoSettingsUnsupportedCodec   
)

Tests parsing video settings with unsupported codec.

Variable Documentation

◆ ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_CODECS_KEY

const std::string alexaClientSDK::aplCapabilityAgent::test::ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_CODECS_KEY = "codecs"

Alexa.Presentation.APL.Video key for supported codecs.

◆ ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_VIDEO_KEY

const std::string alexaClientSDK::aplCapabilityAgent::test::ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_VIDEO_KEY = "video"

Alexa.Presentation.APL.Video key for video related settings.

◆ APL_VIDEO_CONFIG

const std::string alexaClientSDK::aplCapabilityAgent::test::APL_VIDEO_CONFIG
Initial value:
H_264_42 + R"("]}})"
const std::string H_264_42
String representing the H_264_42 codec.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:41
const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_CODECS_KEY
Alexa.Presentation.APL.Video key for supported codecs.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:37
const std::string H_264_41
String representing the H_264_41 codec.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:39
const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_VIDEO_KEY
Alexa.Presentation.APL.Video key for video related settings.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:35

◆ APL_VIDEO_CONFIG_INVALID_CODECS_KEY

const std::string alexaClientSDK::aplCapabilityAgent::test::APL_VIDEO_CONFIG_INVALID_CODECS_KEY
Initial value:
R"(":{")" + INVALID_KEY + R"(":[")" + H_264_41 + R"(",")" +
H_264_42 + R"("]}})"
const std::string INVALID_KEY
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:46
const std::string H_264_42
String representing the H_264_42 codec.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:41
const std::string H_264_41
String representing the H_264_41 codec.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:39
const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_VIDEO_KEY
Alexa.Presentation.APL.Video key for video related settings.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:35

◆ APL_VIDEO_CONFIG_INVALID_VIDEO_KEY

const std::string alexaClientSDK::aplCapabilityAgent::test::APL_VIDEO_CONFIG_INVALID_VIDEO_KEY
Initial value:
= R"({")" + INVALID_KEY + R"(":{")" +
H_264_41 + R"(",")" + H_264_42 + R"("]}})"
const std::string INVALID_KEY
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:46
const std::string H_264_42
String representing the H_264_42 codec.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:41
const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_CODECS_KEY
Alexa.Presentation.APL.Video key for supported codecs.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:37
const std::string H_264_41
String representing the H_264_41 codec.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:39

◆ APL_VIDEO_CONFIG_UNSUPPORTED_CODEC

const std::string alexaClientSDK::aplCapabilityAgent::test::APL_VIDEO_CONFIG_UNSUPPORTED_CODEC
Initial value:
R"(":[")" + H_264_41 + R"(",")" + UNSUPPORTED_CODEC + R"("]}})"
const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_CODECS_KEY
Alexa.Presentation.APL.Video key for supported codecs.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:37
const std::string UNSUPPORTED_CODEC
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:53
const std::string H_264_41
String representing the H_264_41 codec.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:39
const std::string ALEXAPRESENTATIONAPLVIDEO_CAPABILITY_VIDEO_KEY
Alexa.Presentation.APL.Video key for video related settings.
Definition: AlexaPresentationAPLVideoConfigParserTest.cpp:35

◆ H_264_41

const std::string alexaClientSDK::aplCapabilityAgent::test::H_264_41 = "H_264_41"

String representing the H_264_41 codec.

◆ H_264_42

const std::string alexaClientSDK::aplCapabilityAgent::test::H_264_42 = "H_264_42"

String representing the H_264_42 codec.

◆ INVALID_KEY

const std::string alexaClientSDK::aplCapabilityAgent::test::INVALID_KEY = "invalidKey"

◆ UNSUPPORTED_CODEC

const std::string alexaClientSDK::aplCapabilityAgent::test::UNSUPPORTED_CODEC = "unsupportedCodec"

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