AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <AVSCommon/AVS/AVSDiscoveryEndpointAttributes.h>
#include <AVSCommon/AVS/CapabilityConfiguration.h>
#include <AVSCommon/Utils/Optional.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <CapabilitiesDelegate/Utils/DiscoveryUtils.h>
Classes | |
class | alexaClientSDK::capabilitiesDelegate::utils::test::DiscoveryUtilsTest |
Namespaces | |
alexaClientSDK | |
Whether or not curl logs should be emitted. | |
alexaClientSDK::capabilitiesDelegate | |
alexaClientSDK::capabilitiesDelegate::utils | |
alexaClientSDK::capabilitiesDelegate::utils::test | |
Typedefs | |
using | alexaClientSDK::capabilitiesDelegate::utils::test::Properties = CapabilityConfiguration::Properties |
Alias for CapabilityConfiguration::Properties. More... | |
Functions | |
AVSDiscoveryEndpointAttributes | alexaClientSDK::capabilitiesDelegate::utils::test::getTestEndpointAttributes () |
AVSDiscoveryEndpointAttributes | alexaClientSDK::capabilitiesDelegate::utils::test::createEndpointAttributes (const std::string &endpointId, const std::string &friendlyName, const std::string &description, const std::string &manufacturerName, const std::vector< std::string > &displayCategories) |
void | alexaClientSDK::capabilitiesDelegate::utils::test::validateEndpointConfigJson (const std::string &endpointConfigJson) |
void | alexaClientSDK::capabilitiesDelegate::utils::test::validateDiscoveryEvent (const std::string &eventJson, const std::string &expectedName, const std::string &expectedAuthToken, const std::vector< std::string > &expectedEndpointIds, const std::string &expectedEventCorrelationToken="") |
alexaClientSDK::capabilitiesDelegate::utils::test::TEST_F (DiscoveryUtilsTest, test_validateCapabilityConfiguration) | |
alexaClientSDK::capabilitiesDelegate::utils::test::TEST_F (DiscoveryUtilsTest, test_validateAVSDiscoveryEndpointAttributes) | |
alexaClientSDK::capabilitiesDelegate::utils::test::TEST_F (DiscoveryUtilsTest, test_formatEndpointConfigJson) | |
alexaClientSDK::capabilitiesDelegate::utils::test::TEST_F (DiscoveryUtilsTest, test_getDeleteReportEndpointConfigJson) | |
alexaClientSDK::capabilitiesDelegate::utils::test::TEST_F (DiscoveryUtilsTest, test_discoveryAddOrUpdateReportEvent) | |
alexaClientSDK::capabilitiesDelegate::utils::test::TEST_F (DiscoveryUtilsTest, test_deleteReportEvent) | |
alexaClientSDK::capabilitiesDelegate::utils::test::TEST_F (DiscoveryUtilsTest, test_compareEndpointConfigJsons) | |
Variables | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_TYPE_1 = "TEST_TYPE_1" |
A Test CapabilityConfiguration type. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_INTERFACE_NAME_1 = "TEST_INTERFACE_NAME_1" |
A Test CapabilityConfiguration interface name. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_VERSION_1 = "TEST_VERSION_1" |
A Test CapabilityConfiguration version. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_TYPE_2 = "TEST_TYPE_2" |
A Test CapabilityConfiguration type. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_INTERFACE_NAME_2 = "TEST_INTERFACE_NAME_2" |
A Test CapabilityConfiguration interface name. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_VERSION_2 = "TEST_VERSION_2" |
A Test CapabilityConfiguration version. More... | |
static const Optional< std::string > | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_INSTANCE_NAME ("TEST_INSTANCE_NAME") |
A Test CapabilityConfiguration instance name. More... | |
static const std::vector< std::string > | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_SUPPORTED_LIST {"TEST_PROPERTY_1", "TEST_PROPERTY_2"} |
A Test CapabilityConfiguration properties supportedList. More... | |
static const Optional< Properties > | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_PROPERTIES = Properties(false, false, TEST_SUPPORTED_LIST) |
A Test CapabilityConfiguration Optional properties. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::EXPECTED_TEST_PROPERTIES_STRING |
A Test CapabilityConfiguration supported properties string. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_VALID_CONFIG_JSON = R"({"key":{"key1":"value1"}})" |
A Test valid JSON value. More... | |
static const CapabilityConfiguration::AdditionalConfigurations | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_ADDITIONAL_CONFIGURATIONS |
A Test CapabilityConfiguration type. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_ENDPOINT_ID = "TEST_ENDPOINT_ID" |
A Test Endpoint Id. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_FRIENDLY_NAME = "TEST_FRIENDLY_NAME" |
A Test Friendly name. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_DESCRIPTION = "TEST_DESCRIPTION" |
A Test description. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_MANUFACTURER_NAME = "TEST_MANUFACTURER_NAME" |
A Test manufacturer name. More... | |
static const std::vector< std::string > | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_DISPLAY_CATEGORIES = {"TEST_DISPLAY_CATEGORY_1", "TEST_DISPLAY_CATEGORY_2"} |
A Test display category list. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_CUSTOMER_IDENTIFIER = "TEST_CUSTOMER_IDENTIFIER" |
A Test customer identifier. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_SOFTWARE_VERSION = "TEST_SOFTWARE_VERSION" |
A Test software version. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_FIRMWARE_VERSION = "TEST_FIRMWARE_VERSION" |
A Test firmware version. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_SERIAL_NUMBER = "TEST_SERIAL_NUMBER" |
A Test serial number. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_MODEL = "TEST_MODEL" |
A Test model. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_MANUFACTURER = "TEST_MANUFACTURER" |
A Test manufacturer. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_PRODUCT_ID = "TEST_PRODUCT_ID" |
A Test product ID. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_REGISTRATION_KEY = "TEST_REGISTRATION_KEY" |
A Test registration key. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_PRODUCT_ID_KEY = "TEST_PRODUCT_ID_KEY" |
A Test product ID key. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_ENDPOINT_CONFIG = R"({"endpointId":")" + TEST_ENDPOINT_ID + R"("})" |
A Test Endpoint configuration JSON. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_AUTH_TOKEN = "TEST_AUTH_TOKEN" |
A Test auth token. More... | |
static const std::vector< std::map< std::string, std::string > > | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_CONNECTIONS_DATA |
A test connections data. More... | |
static const std::map< std::string, std::string > | alexaClientSDK::capabilitiesDelegate::utils::test::TEST_COOKIE_DATA = {{"KEY1", "VALUE1"}, {"KEY2", "VALUE2"}} |
A test cookie data. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::ADD_OR_UPDATE_REPORT_EVENT_NAME = "AddOrUpdateReport" |
The expected name that appears in the header of the Discovery.AddOrUpdateReport event. More... | |
static const std::string | alexaClientSDK::capabilitiesDelegate::utils::test::DELETE_REPORT_EVENT_NAME = "DeleteReport" |
The expected name that appears in the header of the Discovery.DeleteReport event. 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