![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MockAndroidSLESObject.h>
Public Member Functions | |
void | mockRealize (bool succeed=true) |
void | mockGetInterface (SLInterfaceID id, std::shared_ptr< MockInterface > object) |
SLObjectItf | getObject () |
MockAndroidSLESObject () | |
~MockAndroidSLESObject () | |
This class will be used to mock SLObjectItf
.
Note that for this we create a real structure and set their function pointers to point to mock methods.
alexaClientSDK::applicationUtilities::androidUtilities::test::MockAndroidSLESObject::MockAndroidSLESObject | ( | ) |
Constructor.
alexaClientSDK::applicationUtilities::androidUtilities::test::MockAndroidSLESObject::~MockAndroidSLESObject | ( | ) |
Destructor.
SLObjectItf alexaClientSDK::applicationUtilities::androidUtilities::test::MockAndroidSLESObject::getObject | ( | ) |
Gets the underlying object.
void alexaClientSDK::applicationUtilities::androidUtilities::test::MockAndroidSLESObject::mockGetInterface | ( | SLInterfaceID | id, |
std::shared_ptr< MockInterface > | object | ||
) |
Mock get interface for the given ID.
id | The interface id. |
object | The mock interface that will be returned. |
void alexaClientSDK::applicationUtilities::androidUtilities::test::MockAndroidSLESObject::mockRealize | ( | bool | succeed = true | ) |
Mock the realize method to either succeed or fail. By default, this mock object realize call will succeed.
succeed | true if the mocked method should succeed, false otherwise. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0