AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
NotificationRendererTest.cpp File Reference
#include <future>
#include <memory>
#include <random>
#include <sstream>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <acsdkApplicationAudioPipelineFactoryInterfaces/MockApplicationAudioPipelineFactory.h>
#include <acsdkShutdownManagerInterfaces/MockShutdownNotifier.h>
#include <AVSCommon/AVS/MixingBehavior.h>
#include <AVSCommon/SDKInterfaces/MockFocusManager.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <AVSCommon/Utils/MediaPlayer/MockMediaPlayer.h>
#include <acsdkNotifications/NotificationRenderer.h>
Include dependency graph for NotificationRendererTest.cpp:

Classes

class  alexaClientSDK::acsdkNotifications::test::MockNotificationRendererObserver
 
struct  alexaClientSDK::acsdkNotifications::test::FuturePromisePair
 
class  alexaClientSDK::acsdkNotifications::test::NotificationRendererTest
 

Namespaces

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

Functions

 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_createWithNullMediaPlayer)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_createWithNullApplicationAudioPipelineFactory)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_createWithNullShutdownNotifier)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_createWithNullFocusManager)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_createNotificationsMediaPlayerWithAudioPipelineFactory)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_playPreferredStream)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, testTimer_playDefaultStream)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_secondPlayRejected)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, testTimer_secondPlayWhilePlayingDefaultStream)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_cancelNotificationRendering)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_renderNotificationWhileNotifying)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_renderWhenAcquireChannelsSucceeds)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, test_renderWhenAcquireChannelsFails)
 
 alexaClientSDK::acsdkNotifications::test::TEST_F (NotificationRendererTest, testShutdown)
 

Variables

static const std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::ZERO_TIMEOUT {0}
 
static const std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::EXPECTED_TIMEOUT {100}
 (short) Timeout value to use when reaching the timeout is expected. More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkNotifications::test::UNEXPECTED_TIMEOUT {5000}
 (long) Timeout value to use when reaching the timeout is NOT expected. More...
 
static std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >)> alexaClientSDK::acsdkNotifications::test::goodStreamFunction
 

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