AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
SettingEventSenderTest.cpp File Reference
#include <chrono>
#include <memory>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <Settings/SettingEventMetadata.h>
#include <Settings/SettingEventSender.h>
#include <AVSCommon/SDKInterfaces/MockAVSConnectionManager.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include <AVSCommon/Utils/PromiseFuturePair.h>
Include dependency graph for SettingEventSenderTest.cpp:

Classes

class  alexaClientSDK::settings::test::SettingEventSenderTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::settings
 
 alexaClientSDK::settings::test
 

Functions

 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, test_createValidation)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, test_sendChangedEvent)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, test_sendReportEvent)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, test_invalidJSONValue)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, testSlow_blockingSend)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, testSlow_maxRetries)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, testSlow_retryOnInternalError)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, testSlow_retryStopAfterSuccess)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, testSlow_noRetryOnNonConnected)
 
 alexaClientSDK::settings::test::TEST_F (SettingEventSenderTest, testSlow_cancelRetry)
 

Variables

static const SettingEventMetadata alexaClientSDK::settings::test::METADATA = {"NAMESPACE", "CHANGEDEVENT", "REPORTEVENT", "SETTING"}
 The metadata for the event messages used in this test. More...
 
static const std::string alexaClientSDK::settings::test::EXPECTED_CHANGED_EVENT = R"(\{"event":\{"header":\{"namespace":"NAMESPACE","name":"CHANGEDEVENT","messageId":".*-.*-.*-.*-.*"\},"payload":\{"SETTING":true\}\}\})"
 The expected changed event format. More...
 
static const std::string alexaClientSDK::settings::test::EXPECTED_REPORT_EVENT = R"(\{"event":\{"header":\{"namespace":"NAMESPACE","name":"REPORTEVENT","messageId":".*-.*-.*-.*-.*"\},"payload":\{"SETTING":true\}\}\})"
 The expected report event format. More...
 
static const std::vector< int > alexaClientSDK::settings::test::RETRY_TABLE
 Table with the retry times on subsequent retries. More...
 
static const auto alexaClientSDK::settings::test::MAX_RETRY_WAIT = std::chrono::seconds(4)
 

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