AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
List of all members
alexaClientSDK::acsdkPropertiesInterfaces::test::MockPropertiesFactory Class Reference

Mock class for PropertiesFactoryInterface. More...

#include <MockPropertiesFactory.h>

Inheritance diagram for alexaClientSDK::acsdkPropertiesInterfaces::test::MockPropertiesFactory:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkPropertiesInterfaces::test::MockPropertiesFactory:
Collaboration graph
[legend]

Public Member Functions

PropertiesFactoryInterface methods
std::shared_ptr< PropertiesInterfacegetProperties (const std::string &configUri) noexcept override
 Create properties interface for a given component and namespace. More...
 
PropertiesFactoryInterface stub methods for 1.8.x gmock
 MOCK_METHOD1 (_getProperties, std::shared_ptr< PropertiesInterface >(const std::string &))
 
- Public Member Functions inherited from alexaClientSDK::acsdkPropertiesInterfaces::PropertiesFactoryInterface
virtual ~PropertiesFactoryInterface ()=default
 

Detailed Description

Mock class for PropertiesFactoryInterface.

Member Function Documentation

◆ getProperties()

std::shared_ptr< PropertiesInterface > alexaClientSDK::acsdkPropertiesInterfaces::test::MockPropertiesFactory::getProperties ( const std::string &  uri)
inlineoverridevirtualnoexcept

Create properties interface for a given component and namespace.

This method creates interface to access component specific configuration. The implementation maps URI into implementation-specific configuration container, and URI can be treated as a file location, database or table name, or region in non-volatile memory.

The method may return the same or different instances for the same configuration URI, but if different instances are returned, all of them must provide access to the same configuration container.

Parameters
uriResource URI. The format must conform to RFC3986, but handling is implementation-specific.
Returns
Reference to properties adapter or nullptr on error.

Implements alexaClientSDK::acsdkPropertiesInterfaces::PropertiesFactoryInterface.

◆ MOCK_METHOD1()

alexaClientSDK::acsdkPropertiesInterfaces::test::MockPropertiesFactory::MOCK_METHOD1 ( _getProperties  ,
std::shared_ptr< PropertiesInterface const std::string & 
)

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

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