AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions | Variables
RendererTest.cpp File Reference
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <acsdkShutdownManagerInterfaces/MockShutdownNotifier.h>
#include <acsdkApplicationAudioPipelineFactoryInterfaces/MockApplicationAudioPipelineFactory.h>
#include <AVSCommon/Utils/MediaPlayer/MockMediaPlayer.h>
#include <AVSCommon/Utils/MediaPlayer/SourceConfig.h>
#include <AVSCommon/Utils/Network/MockInternetConnectionMonitor.h>
#include <Settings/DeviceSettingsManager.h>
#include "acsdkAlerts/Renderer/Renderer.h"
Include dependency graph for RendererTest.cpp:

Classes

class  alexaClientSDK::acsdkAlerts::renderer::test::MockRendererObserver
 
class  alexaClientSDK::acsdkAlerts::renderer::test::TestMediaPlayer
 
class  alexaClientSDK::acsdkAlerts::renderer::test::RendererTest
 

Namespaces

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

Typedefs

using alexaClientSDK::acsdkAlerts::renderer::test::MediaPlayerState = avsCommon::utils::mediaPlayer::MediaPlayerState
 

Functions

 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_createAlertRenderer)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_create)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_start)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_stop)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_restart)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_stopError)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_onPlaybackStarted)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_onPlaybackStopped)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_onPlaybackFinishedError)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_onPlaybackError)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, testTimer_emptyURLNonZeroLoopPause)
 
 alexaClientSDK::acsdkAlerts::renderer::test::TEST_F (RendererTest, test_alarmVolumeRampRendering)
 

Variables

static const std::chrono::milliseconds alexaClientSDK::acsdkAlerts::renderer::test::TEST_TIMEOUT {100}
 Amount of time that the renderer observer should wait for a task to finish. More...
 
static const MediaPlayerState alexaClientSDK::acsdkAlerts::renderer::test::DEFAULT_MEDIA_PLAYER_STATE = {std::chrono::milliseconds(0)}
 Default media player state to report for all playback events. More...
 
static const avsCommon::utils::mediaPlayer::MediaPlayerInterface::SourceId alexaClientSDK::acsdkAlerts::renderer::test::TEST_SOURCE_ID_GOOD = 1234
 Test source Id that exists for the tests. More...
 
static const avsCommon::utils::mediaPlayer::MediaPlayerInterface::SourceId alexaClientSDK::acsdkAlerts::renderer::test::TEST_SOURCE_ID_BAD = 5678
 Test source Id that does not exist for the tests. More...
 
static const std::string alexaClientSDK::acsdkAlerts::renderer::test::TEST_URL1 = "fake.url.one"
 Test URLs for the renderer. More...
 
static const std::string alexaClientSDK::acsdkAlerts::renderer::test::TEST_URL2 = "fake.url.two"
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAlerts::renderer::test::TEST_LOOP_PAUSE {100}
 Loop pause for the renderer. More...
 
static const int alexaClientSDK::acsdkAlerts::renderer::test::TEST_LOOP_COUNT = 2
 Loop count for the renderer. More...
 
static const auto alexaClientSDK::acsdkAlerts::renderer::test::TEST_BACKGROUND_LOOP_PAUSE = std::chrono::seconds(1)
 Loop background pause for the renderer. More...
 
static const auto alexaClientSDK::acsdkAlerts::renderer::test::TEST_BACKGROUND_TIMEOUT = std::chrono::seconds(5)
 Amount of time that the renderer observer should wait for a task to finish. More...
 
static const std::string alexaClientSDK::acsdkAlerts::renderer::test::ALARM_NAME = "ALARM"
 

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