AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
MockSetting.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 #ifndef ALEXA_CLIENT_SDK_SETTINGS_TEST_SETTINGS_MOCKSETTING_H_
16 #define ALEXA_CLIENT_SDK_SETTINGS_TEST_SETTINGS_MOCKSETTING_H_
17 
18 #include <gmock/gmock.h>
19 
21 
22 namespace alexaClientSDK {
23 namespace settings {
24 namespace test {
25 
29 template <typename ValueT>
30 class MockSetting : public SettingInterface<ValueT> {
31 public:
34  MOCK_METHOD1_T(setLocalChange, SetSettingResult(const ValueT& value));
35  MOCK_METHOD1_T(setAvsChange, bool(const ValueT& value));
36  MOCK_METHOD1_T(clearData, bool(const ValueT& value));
38 
44  explicit MockSetting(const ValueT& value);
45 };
46 
47 template <typename ValueT>
48 MockSetting<ValueT>::MockSetting(const ValueT& value) : SettingInterface<ValueT>(value) {
49 }
50 
51 } // namespace test
52 } // namespace settings
53 } // namespace alexaClientSDK
54 
55 #endif // ALEXA_CLIENT_SDK_SETTINGS_TEST_SETTINGS_MOCKSETTING_H_
virtual bool setAvsChange(const ValueType &value)=0
MOCK_METHOD1_T(setLocalChange, SetSettingResult(const ValueT &value))
Definition: SettingInterface.h:45
virtual bool clearData(const ValueType &value)=0
SetSettingResult
Definition: SetSettingResult.h:23
MockSetting(const ValueT &value)
Definition: MockSetting.h:48
virtual SetSettingResult setLocalChange(const ValueType &value)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36

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