AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
ConfigurationNodeTest.cpp File Reference
#include <sstream>
#include <gtest/gtest.h>
#include "AVSCommon/Utils/Configuration/ConfigurationNode.h"
Include dependency graph for ConfigurationNodeTest.cpp:

Classes

class  alexaClientSDK::avsCommon::utils::configuration::test::ConfigurationNodeTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::configuration
 
 alexaClientSDK::avsCommon::utils::configuration::test
 

Functions

bool alexaClientSDK::avsCommon::utils::configuration::test::initializeConfiguration (const std::string &jsonConfiguration)
 
 alexaClientSDK::avsCommon::utils::configuration::test::TEST_F (ConfigurationNodeTest, test_initializationAndAccess)
 
 alexaClientSDK::avsCommon::utils::configuration::test::TEST_F (ConfigurationNodeTest, test_arrayElement)
 
 alexaClientSDK::avsCommon::utils::configuration::test::TEST_F (ConfigurationNodeTest, test_emptyArrayElement)
 

Variables

static const std::string alexaClientSDK::avsCommon::utils::configuration::test::NON_OBJECT = "non-existent-object"
 Name of non-existent object for exercising failure to find a ConfigurationNode. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::OBJECT1 = "object1"
 Name of first root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::BOOL1_1 = "bool1.1"
 Name of first bool value in first root level object. More...
 
static const bool alexaClientSDK::avsCommon::utils::configuration::test::BOOL_VALUE1_1 = true
 Value of first bool value in first root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::OBJECT1_1 = "object1.1"
 Name of first object inside first root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::STRING1_1_1 = "string1.1.1"
 Name of first string value in first object inside first root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::STRING_VALUE1_1_1 = "stringValue1.1.1"
 Value of first string value in first object inside first root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::OBJECT2 = "object2"
 Name of second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::STRING2_1 = "string2.1"
 Name of first string in second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::NEW_STRING_VALUE2_1 = "new-stringValue2.1"
 Replaced value of first string in second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::NON_EXISTENT_INT2_1 = "non-existent-int2.1"
 Name for non-existent int value in second root level object. More...
 
static const int alexaClientSDK::avsCommon::utils::configuration::test::NON_EXISTENT_INT_VALUE2_1 = 123
 Default value for non-existent int value in second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::INT2_1 = "int2.1"
 Name of first int value in second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::OBJECT2_1 = "object2.1"
 Name of first object inside second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::STRING2_1_1 = "string2.1.1"
 Name of first string inside first object inside second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::NEW_STRING_VALUE2_1_1 = "new-stringValue2.1.1"
 Replaced value of first string inside first object inside second root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::BAD_JSON = "{ bad json }"
 Bad JSON string to verify handling the failure to parse JSON. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::ARRAY_OBJECT = "arrayObject"
 Name of array root level object. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::FIRST_JSON
 First JSON string to parse, serving as default for configuration values. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::SECOND_JSON
 Second JSON string to parse, overlaying configuration values from FIRST_JSON. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::THIRD_JSON
 Third JSON string to parse, overlaying configuration values from FIRST_JSON and SECOND_JSON. More...
 
static const std::string alexaClientSDK::avsCommon::utils::configuration::test::ARRAY_JSON
 A JSON string to test array. More...
 

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