16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_STORAGE_STUBMISCSTORAGE_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_STORAGE_STUBMISCSTORAGE_H_ 23 #include <unordered_map> 24 #include <unordered_set> 30 namespace sdkInterfaces {
39 static std::shared_ptr<StubMiscStorage>
create();
50 void close()
override;
89 bool* tableEntryExistsValue)
override;
96 std::unordered_map<std::string, std::string>* valueContainer)
override;
118 std::unordered_map<std::string, std::string> m_storage;
121 std::unordered_set<std::string> m_tables;
133 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_TEST_AVSCOMMON_SDKINTERFACES_STORAGE_STUBMISCSTORAGE_H_ ValueType
The type of the value column in Misc DB.
Definition: MiscStorageInterface.h:44
static std::shared_ptr< StubMiscStorage > create()
bool createDatabase() override
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
bool tableEntryExists(const std::string &componentName, const std::string &tableName, const std::string &key, bool *tableEntryExistsValue) override
bool clearTable(const std::string &componentName, const std::string &tableName) override
bool tableExists(const std::string &componentName, const std::string &tableName, bool *tableExistsValue) override
bool load(const std::string &componentName, const std::string &tableName, std::unordered_map< std::string, std::string > *valueContainer) override
bool put(const std::string &componentName, const std::string &tableName, const std::string &key, const std::string &value) override
static const std::string tableName
Definition: SmartScreenCaptionStateManagerTest.cpp:30
bool add(const std::string &componentName, const std::string &tableName, const std::string &key, const std::string &value) override
KeyType
The type of the key column in Misc DB.
Definition: MiscStorageInterface.h:36
Definition: StubMiscStorage.h:37
bool createTable(const std::string &componentName, const std::string &tableName, KeyType keyType, ValueType valueType) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool deleteTable(const std::string &componentName, const std::string &tableName) override
static const std::string componentName
Definition: SmartScreenCaptionStateManagerTest.cpp:29
bool update(const std::string &componentName, const std::string &tableName, const std::string &key, const std::string &value) override
Definition: MiscStorageInterface.h:33
static const std::string key
The database key to be used by the protocol given the METADATA object.
Definition: SharedAVSSettingProtocolTest.cpp:58