AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
SoftwareInfoTest.cpp File Reference
#include <chrono>
#include <string>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <AVSCommon/AVS/AbstractAVSConnectionManager.h>
#include <AVSCommon/AVS/Attachment/MockAttachmentManager.h>
#include <AVSCommon/SDKInterfaces/MockExceptionEncounteredSender.h>
#include <AVSCommon/SDKInterfaces/MockMessageSender.h>
#include "System/SoftwareInfoSender.h"
Include dependency graph for SoftwareInfoTest.cpp:

Classes

class  alexaClientSDK::capabilityAgents::system::test::MockSoftwareInfoSenderObserver
 
class  alexaClientSDK::capabilityAgents::system::test::MockConnection
 
class  alexaClientSDK::capabilityAgents::system::test::SoftwareInfoSenderTest
 Test harness for SoftwareInfoSender class. More...
 

Namespaces

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

Functions

static const std::chrono::milliseconds alexaClientSDK::capabilityAgents::system::test::EXPECTED_TIMEOUT (100)
 Value for timeouts we expect to reach. More...
 
static const std::chrono::seconds alexaClientSDK::capabilityAgents::system::test::UNEXPECTED_TIMEOUT (5)
 Value for timeouts we do not expect to reach. More...
 
static const std::chrono::seconds alexaClientSDK::capabilityAgents::system::test::TWO_RETRIES_TIMEOUT (15)
 Max time to wait for two send retries. More...
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_createFailedInvalidFirmwareVersion)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_createSuccessWithsendSoftwareInfoUponConnectFalse)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_createSuccessWithObserverNull)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_createFailedConnectionNull)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_createFailedMessageSenderNull)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_createFailedExceptionEncounteredSenderNull)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_noSoftwareInfoEventSentByDefault)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_nothingSentBeforeConnected)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_softwareInfoSentUponConnectIfSendSetTrueBeforeConnect)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_reportSoftwareInfoReceived)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_reportSoftwareInfoCancellsPreviousDirective)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_delayedReportSoftwareInfoNotifiesOnce)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, testSlow_verifySendRetries)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_setInvalidFirmwareVersion)
 
 alexaClientSDK::capabilityAgents::system::test::TEST_F (SoftwareInfoSenderTest, test_setFirmwareVersionCancellsPreviousSetting)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::system::test::NAMESPACE_SYSTEM = "System"
 This is a string for the namespace we are testing for. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::NAME_SOFTWARE_INFO = "SoftwareInfo"
 This is a string for the name of the System.SoftwareInfo event. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::NAME_REPORT_SOFTWARE_INFO = "ReportSoftwareInfo"
 This is a string for the name of the System.ReportSoftwareInfo directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::DIALOG_REQUEST_ID = ""
 Empty dialogRequestId with which to mock receiving a directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::UNPARSED_DIRECTIVE = ""
 Dummy unparsed directive JSON. More...
 
static const auto alexaClientSDK::capabilityAgents::system::test::REPORT_SOFTWARE_INFO_DIRECTIVE_HEADER
 Header of ReportSoftwareInfo directive. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::TEST_PAYLOAD = ""
 Dummy directive payload. More...
 
static const std::string alexaClientSDK::capabilityAgents::system::test::ATTACHMENT_CONTEXT_ID = ""
 Empty attachment ID. More...
 
static const FirmwareVersion alexaClientSDK::capabilityAgents::system::test::FIRST_FIRMWARE_VERSION = 1
 
static const FirmwareVersion alexaClientSDK::capabilityAgents::system::test::SECOND_FIRMWARE_VERSION = 2
 
static const FirmwareVersion alexaClientSDK::capabilityAgents::system::test::THIRD_FIRMWARE_VERSION = 3
 

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