15 #ifndef ALEXA_CLIENT_SDK_SETTINGS_TEST_SETTINGS_MOCKSETTINGPROTOCOL_H_ 16 #define ALEXA_CLIENT_SDK_SETTINGS_TEST_SETTINGS_MOCKSETTINGPROTOCOL_H_ 77 m_initialValue{initialValue},
78 m_applyChange{applyChange},
79 m_revertChange{revertChange},
80 m_isClearedData{
false} {
107 if (m_revertChange) {
117 applyChange(m_initialValue);
123 m_isClearedData =
true;
128 return m_isClearedData;
135 #endif // ALEXA_CLIENT_SDK_SETTINGS_TEST_SETTINGS_MOCKSETTINGPROTOCOL_H_ std::function< std::pair< bool, std::string >()> ApplyChangeFunction
Definition: SettingProtocolInterface.h:46
std::function< std::pair< bool, std::string >(const std::string &dbValue)> ApplyDbChangeFunction
Definition: SettingProtocolInterface.h:56
MockSettingProtocol(const std::string &initialValue, bool applyChange, bool revertChange)
Definition: MockSettingProtocol.h:76
Definition: MockSettingProtocol.h:34
bool clearData() override
Definition: MockSettingProtocol.h:122
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
SetSettingResult localChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override
Definition: MockSettingProtocol.h:83
bool isDataCleared()
Definition: MockSettingProtocol.h:127
std::function< void(SettingNotifications notification)> SettingNotificationFunction
Definition: SettingProtocolInterface.h:63
Setting value changed due to a local change.
bool restoreValue(ApplyDbChangeFunction applyChange, SettingNotificationFunction notifyObservers) override
Definition: MockSettingProtocol.h:115
std::function< std::string()> RevertChangeFunction
Definition: SettingProtocolInterface.h:70
SetSettingResult
Definition: SetSettingResult.h:23
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: SettingProtocolInterface.h:38
bool avsChange(ApplyChangeFunction applyChange, RevertChangeFunction revertChange, SettingNotificationFunction notifyObservers) override
Definition: MockSettingProtocol.h:99
Setting value changed due to a change requested via cloud.
The change request has been enqueued. There will be a follow up notification to inform the operation ...