AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter Class Reference

#include <MockPlaybackRouter.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter:
Collaboration graph
[legend]

Public Member Functions

 MOCK_METHOD1 (buttonPressed, void(avsCommon::avs::PlaybackButton button))
 
 MOCK_METHOD2 (togglePressed, void(avsCommon::avs::PlaybackToggle toggle, bool action))
 
 MOCK_METHOD1 (setHandler, void(std::shared_ptr< avsCommon::sdkInterfaces::PlaybackHandlerInterface > handler))
 
 MOCK_METHOD0 (switchToDefaultHandler, void())
 
 MOCK_METHOD2 (setHandler, void(std::shared_ptr< avsCommon::sdkInterfaces::PlaybackHandlerInterface > handler, std::shared_ptr< avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface > localHandler))
 
 MOCK_METHOD1 (useDefaultHandlerWith, void(std::shared_ptr< avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface > localHandler))
 
 MOCK_METHOD1 (localOperation, bool(avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface::PlaybackOperation op))
 
 MOCK_METHOD2 (localSeekTo, bool(std::chrono::milliseconds location, bool fromStart))
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::PlaybackRouterInterface
virtual ~PlaybackRouterInterface ()=default
 
virtual void buttonPressed (avsCommon::avs::PlaybackButton button)=0
 
virtual void togglePressed (avsCommon::avs::PlaybackToggle toggle, bool action)=0
 
virtual void setHandler (std::shared_ptr< PlaybackHandlerInterface > handler, std::shared_ptr< LocalPlaybackHandlerInterface > localHandler=nullptr)=0
 
virtual void switchToDefaultHandler ()=0
 
virtual void useDefaultHandlerWith (std::shared_ptr< LocalPlaybackHandlerInterface > localHandler)
 
virtual bool localOperation (LocalPlaybackHandlerInterface::PlaybackOperation op)
 
virtual bool localSeekTo (std::chrono::milliseconds location, bool fromStart)
 

Detailed Description

Mock class implementing PlaybackRouterInterface

Member Function Documentation

◆ MOCK_METHOD0()

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD0 ( switchToDefaultHandler  ,
void()   
)

◆ MOCK_METHOD1() [1/4]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD1 ( buttonPressed  ,
void(avsCommon::avs::PlaybackButton button)   
)

◆ MOCK_METHOD1() [2/4]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD1 ( setHandler  ,
void(std::shared_ptr< avsCommon::sdkInterfaces::PlaybackHandlerInterface > handler)   
)

◆ MOCK_METHOD1() [3/4]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD1 ( useDefaultHandlerWith  ,
void(std::shared_ptr< avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface > localHandler)   
)

◆ MOCK_METHOD1() [4/4]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD1 ( localOperation  ,
bool(avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface::PlaybackOperation op)   
)

◆ MOCK_METHOD2() [1/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD2 ( togglePressed  ,
void(avsCommon::avs::PlaybackToggle toggle, bool action)   
)

◆ MOCK_METHOD2() [2/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD2 ( setHandler  ,
void(std::shared_ptr< avsCommon::sdkInterfaces::PlaybackHandlerInterface > handler, std::shared_ptr< avsCommon::sdkInterfaces::LocalPlaybackHandlerInterface > localHandler)   
)

◆ MOCK_METHOD2() [3/3]

alexaClientSDK::avsCommon::sdkInterfaces::test::MockPlaybackRouter::MOCK_METHOD2 ( localSeekTo  ,
bool(std::chrono::milliseconds location, bool fromStart)   
)

The documentation for this class was generated from the following file:

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