AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Public Attributes | List of all members
alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest Class Reference
Inheritance diagram for alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest:
Inheritance graph
Collaboration diagram for alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest:
Collaboration graph

Public Member Functions

 MPRISPlayerTest ()
 SetUp before each test case. More...
virtual ~MPRISPlayerTest ()
 TearDown after each test case. More...
void init ()
 Creates an instance of the MPRISPlayer. More...
void gMainLoop ()
 Acquires the bus name and then starts the main loop. More...
- Public Member Functions inherited from testing::Test
virtual ~Test ()

Public Attributes

std::shared_ptr< MockDBusProxym_mockMedia
 A mock DBusProxy object to test with. More...
std::shared_ptr< BluetoothEventBusm_eventBus
 An event bus instance. More...
std::shared_ptr< MockListenerm_mockListener
 A mock listener for the event bus. More...
std::unique_ptr< MPRISPlayerm_player
 An MPRISPlayer instance. More...
std::promise< void > m_nameAcquiredPromise
 Waits for the bus name to be acquired. More...
GMainLoop * m_loop
 Pointer to the GMainLoop. More...
guint m_busId
 The id for the bus. More...

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
static void TearDownTestCase ()
static bool HasFatalFailure ()
static bool HasNonfatalFailure ()
static bool HasFailure ()
static void RecordProperty (const std::string &key, const std::string &value)
static void RecordProperty (const std::string &key, int value)
- Protected Member Functions inherited from testing::Test
 Test ()
virtual void SetUp ()
virtual void TearDown ()

Detailed Description

Test fixture for the base tests. DBus objects are not mockable, so we use live calls to DBus for these tests.

Constructor & Destructor Documentation

◆ MPRISPlayerTest()

alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::MPRISPlayerTest ( )

SetUp before each test case.

◆ ~MPRISPlayerTest()

alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::~MPRISPlayerTest ( )

TearDown after each test case.

Member Function Documentation

◆ gMainLoop()

void alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::gMainLoop ( )

Acquires the bus name and then starts the main loop.

◆ init()

void alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::init ( )

Creates an instance of the MPRISPlayer.

Member Data Documentation

◆ m_busId

guint alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_busId

The id for the bus.

◆ m_eventBus

std::shared_ptr<BluetoothEventBus> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_eventBus

An event bus instance.

◆ m_loop

GMainLoop* alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_loop

Pointer to the GMainLoop.

◆ m_mockListener

std::shared_ptr<MockListener> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_mockListener

A mock listener for the event bus.

◆ m_mockMedia

std::shared_ptr<MockDBusProxy> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_mockMedia

A mock DBusProxy object to test with.

◆ m_nameAcquiredPromise

std::promise<void> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_nameAcquiredPromise

Waits for the bus name to be acquired.

◆ m_player

std::unique_ptr<MPRISPlayer> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_player

An MPRISPlayer instance.

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

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