AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions
DavsEndpointHandlerV3Test.cpp File Reference
#include <gtest/gtest.h>
#include <string>
#include <vector>
#include "TestUtil.h"
#include "acsdkDavsClient/DavsEndpointHandlerV3.h"
Include dependency graph for DavsEndpointHandlerV3Test.cpp:

Classes

struct  TestDataEndpoints
 
class  DavsEndpointHandlerV3Test
 

Functions

 TEST_F (DavsEndpointHandlerV3Test, InvalidCreate)
 
 TEST_F (DavsEndpointHandlerV3Test, InvalidInputs)
 
 TEST_P (DavsEndpointHandlerV3Test, TestWithVariousEndpointCombinations)
 
 INSTANTIATE_TEST_CASE_P (EndpointChecks, DavsEndpointHandlerV3Test, ValuesIn< vector< TestDataEndpoints >>({{"NA Endpoint", "123456", "en-US", "Type1", "Key1", {{"F", {"A", "B"}}}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type1/Key1?locale=en-US&encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"EU Endpoint", "ABCDEF", "en-US", "Type2", "Key2", {{"F", {"A", "B"}}}, Region::EU, "https://api.eu.amazonalexa.com/v3/segments/ABCDEF/artifacts/Type2/Key2?locale=en-US&encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"FE Endpoint", "UVWXYZ", "en-US", "Type3", "Key3", {{"F", {"A", "B"}}}, Region::FE, "https://api.fe.amazonalexa.com/v3/segments/UVWXYZ/artifacts/Type3/Key3?locale=en-US&encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"No locale", "123456", "", "Type4", "Key4", {{"F", {"A", "B"}}}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type4/Key4?encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"No filters", "123456", "en-GB", "Type5", "Key5", {}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type5/Key5?locale=en-GB"}, {"No filters/locale", "123456", "", "Type6", "Key6", {}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type6/Key6"}, }), PrintDescription())
 

Function Documentation

◆ INSTANTIATE_TEST_CASE_P()

INSTANTIATE_TEST_CASE_P ( EndpointChecks  ,
DavsEndpointHandlerV3Test  ,
ValuesIn< vector< TestDataEndpoints >>  {{"NA Endpoint", "123456", "en-US", "Type1", "Key1", {{"F", {"A", "B"}}}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type1/Key1?locale=en-US&encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"EU Endpoint", "ABCDEF", "en-US", "Type2", "Key2", {{"F", {"A", "B"}}}, Region::EU, "https://api.eu.amazonalexa.com/v3/segments/ABCDEF/artifacts/Type2/Key2?locale=en-US&encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"FE Endpoint", "UVWXYZ", "en-US", "Type3", "Key3", {{"F", {"A", "B"}}}, Region::FE, "https://api.fe.amazonalexa.com/v3/segments/UVWXYZ/artifacts/Type3/Key3?locale=en-US&encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"No locale", "123456", "", "Type4", "Key4", {{"F", {"A", "B"}}}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type4/Key4?encodedFilters=eyJGIjpbIkEiLCJCIl19"}, {"No filters", "123456", "en-GB", "Type5", "Key5", {}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type5/Key5?locale=en-GB"}, {"No filters/locale", "123456", "", "Type6", "Key6", {}, Region::NA, "https://api.amazonalexa.com/v3/segments/123456/artifacts/Type6/Key6"}, },
PrintDescription()   
)

◆ TEST_F() [1/2]

TEST_F ( DavsEndpointHandlerV3Test  ,
InvalidCreate   
)

◆ TEST_F() [2/2]

TEST_F ( DavsEndpointHandlerV3Test  ,
InvalidInputs   
)

◆ TEST_P()

TEST_P ( DavsEndpointHandlerV3Test  ,
TestWithVariousEndpointCombinations   
)

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