AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockProperties.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDK_PROPERTIESINTERFACES_TEST_MOCKPROPERTIES_H_
17 #define ACSDK_PROPERTIESINTERFACES_TEST_MOCKPROPERTIES_H_
18 
22 
23 namespace alexaClientSDK {
24 namespace propertiesInterfaces {
25 namespace test {
26 
28 
32 public:
38  MOCK_NOEXCEPT_METHOD2(putBytes, bool(const std::string&, const Bytes&));
39  MOCK_NOEXCEPT_METHOD1(getKeys, bool(std::unordered_set<std::string>&));
40  MOCK_NOEXCEPT_METHOD1(remove, bool(const std::string&));
43 };
44 
45 } // namespace test
46 } // namespace propertiesInterfaces
47 } // namespace alexaClientSDK
48 
49 #endif // ACSDK_PROPERTIESINTERFACES_TEST_MOCKPROPERTIES_H_
virtual bool getKeys(std::unordered_set< std::string > &keys) noexcept=0
Method to inspect existing properties.
MOCK_NOEXCEPT_METHOD2(getString, bool(const std::string &, std::string &))
virtual bool getString(const std::string &key, std::string &value) noexcept=0
Method to load string value from configuration.
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
virtual bool putBytes(const std::string &key, const Bytes &value) noexcept=0
Method to store binary value into configuration.
Mock class for PropertiesInterface.
Definition: MockProperties.h:31
This class provides an interface to a simple key/value container.
Definition: PropertiesInterface.h:37
std::vector< unsigned char > Bytes
Bytes data type. This data type represent a continuous byte array.
Definition: PropertiesInterface.h:41
MOCK_NOEXCEPT_METHOD1(getKeys, bool(std::unordered_set< std::string > &))
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual bool putString(const std::string &key, const std::string &value) noexcept=0
Method to store string value into configuration.
virtual bool clear() noexcept=0
Removes all properties from a configuration container.
virtual bool getBytes(const std::string &key, Bytes &value) noexcept=0
Method to load binary value from configuration.

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