|
| ~MockNotificationRenderer () |
|
| MockNotificationRenderer () |
|
void | addObserver (std::shared_ptr< NotificationRendererObserverInterface > observer) override |
|
void | removeObserver (std::shared_ptr< NotificationRendererObserverInterface > observer) override |
|
bool | renderNotification (std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> audioFactory, const std::string &url) override |
|
bool | cancelNotificationRendering () override |
|
| MOCK_METHOD2 (renderNotificationShim, bool(std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> audioFactory, const std::string &url)) |
|
| MOCK_METHOD0 (cancelNotificationRenderingShim, bool()) |
|
bool | mockRender (std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> audioFactory, const std::string &url) |
|
bool | mockCancel () |
|
bool | waitForRenderCall () |
|
bool | waitForRenderCallDone () |
|
bool | waitUntilRenderingStarted (std::chrono::milliseconds timeout=MY_WAIT_TIMEOUT) |
|
bool | waitUntilRenderingFinished (std::chrono::milliseconds timeout=MY_WAIT_TIMEOUT) |
|
virtual | ~NotificationRendererInterface ()=default |
|
virtual bool | renderNotification (std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> audioFactory, const std::string &url)=0 |
|
◆ ~MockNotificationRenderer()
alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::~MockNotificationRenderer |
( |
| ) |
|
◆ MockNotificationRenderer()
alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::MockNotificationRenderer |
( |
| ) |
|
◆ addObserver()
◆ cancelNotificationRendering()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::cancelNotificationRendering |
( |
| ) |
|
|
overridevirtual |
◆ create()
static std::shared_ptr<NiceMock<MockNotificationRenderer> > alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::create |
( |
| ) |
|
|
inlinestatic |
◆ MOCK_METHOD0()
alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::MOCK_METHOD0 |
( |
cancelNotificationRenderingShim |
, |
|
|
bool() |
|
|
) |
| |
◆ MOCK_METHOD2()
alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::MOCK_METHOD2 |
( |
renderNotificationShim |
, |
|
|
bool(std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> audioFactory, const std::string &url) |
|
|
) |
| |
◆ mockCancel()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::mockCancel |
( |
| ) |
|
A method mocking cancelRenderingNotification(). This method attempts to sneak in between waitForRenderCall() and waitForRenderCallDone() by triggering m_renderTrigger before m_finishedRendering has been set to true;
◆ mockRender()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::mockRender |
( |
std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> |
audioFactory, |
|
|
const std::string & |
url |
|
) |
| |
◆ removeObserver()
◆ renderNotification()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::renderNotification |
( |
std::function< std::pair< std::unique_ptr< std::istream >, const avsCommon::utils::MediaType >()> |
audioFactory, |
|
|
const std::string & |
url |
|
) |
| |
|
override |
◆ waitForRenderCall()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::waitForRenderCall |
( |
| ) |
|
◆ waitForRenderCallDone()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::waitForRenderCallDone |
( |
| ) |
|
◆ waitUntilRenderingFinished()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::waitUntilRenderingFinished |
( |
std::chrono::milliseconds |
timeout = MY_WAIT_TIMEOUT | ) |
|
Waits for the fulfillment of m_renderFinishedPromise, then resets any needed variables.
◆ waitUntilRenderingStarted()
bool alexaClientSDK::capabilityAgents::notifications::test::MockNotificationRenderer::waitUntilRenderingStarted |
( |
std::chrono::milliseconds |
timeout = MY_WAIT_TIMEOUT | ) |
|
Waits for the fulfillment of m_renderStartedPromise, then resets any needed variables.
The documentation for this class was generated from the following file:
AlexaClientSDK 1.19.0 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0