![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
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... | |
![]() | |
virtual | ~Test () |
Public Attributes | |
std::shared_ptr< MockDBusProxy > | m_mockMedia |
A mock DBusProxy object to test with. More... | |
std::shared_ptr< BluetoothEventBus > | m_eventBus |
An event bus instance. More... | |
std::shared_ptr< MockListener > | m_mockListener |
A mock listener for the event bus. More... | |
std::unique_ptr< MPRISPlayer > | m_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 | |
![]() | |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
![]() | |
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) |
![]() | |
Test () | |
virtual void | SetUp () |
virtual void | TearDown () |
Test fixture for the base tests. DBus objects are not mockable, so we use live calls to DBus for these tests.
alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::MPRISPlayerTest | ( | ) |
SetUp before each test case.
|
virtual |
TearDown after each test case.
void alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::gMainLoop | ( | ) |
Acquires the bus name and then starts the main loop.
void alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::init | ( | ) |
Creates an instance of the MPRISPlayer
.
guint alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_busId |
The id for the bus.
std::shared_ptr<BluetoothEventBus> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_eventBus |
An event bus instance.
GMainLoop* alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_loop |
Pointer to the GMainLoop.
std::shared_ptr<MockListener> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_mockListener |
A mock listener for the event bus.
std::shared_ptr<MockDBusProxy> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_mockMedia |
A mock DBusProxy
object to test with.
std::promise<void> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_nameAcquiredPromise |
Waits for the bus name to be acquired.
std::unique_ptr<MPRISPlayer> alexaClientSDK::bluetoothImplementations::blueZ::test::MPRISPlayerTest::m_player |
An MPRISPlayer
instance.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0