12#ifndef RTCTK_COMPONENTFRAMEWORK_TEST_INMEMORYOLDB_HPP
13#define RTCTK_COMPONENTFRAMEWORK_TEST_INMEMORYOLDB_HPP
17#include <gmock/gmock.h>
20#include <ciiOldbGlobal.hpp>
38 std::shared_ptr<MockExtRedisBackend>,
39 std::shared_ptr<MockExtRedisBackend>>;
87 const std::string& target_config_storage = elt::oldb::CiiOldbGlobal::CONFIG_STORAGE_CACHE);
Mock interface representing the external Redis backend.
Definition inMemoryOldb.hpp:30
MOCK_METHOD(void, ReadDataPoint,(const std::string &uri))
MOCK_METHOD(void, DeleteDataPoint,(const std::string &uri))
MOCK_METHOD(void, WriteDataPoint,(const std::string &uri))
void DeleteAllConfigDataPoints(const std::string &target_config_storage=elt::oldb::CiiOldbGlobal::CONFIG_STORAGE_CACHE)
Deletes all configuration datapoints in the CII configuration service.
Definition inMemoryOldb.cpp:117
OldbCreationResult CreateInMemoryOldbWithExtRedis()
This function prepares an in-memory OLDB with fake external Redis providers for unit testing.
Definition inMemoryOldb.cpp:80
std::shared_ptr< elt::oldb::CiiOldb > CreateInMemoryOldb()
This function prepares an in-memory OLDB that is suitable for unit testing.
Definition inMemoryOldb.cpp:113
Definition fakeClock.cpp:14
std::tuple< std::shared_ptr< elt::oldb::CiiOldb >, std::shared_ptr< MockExtRedisBackend >, std::shared_ptr< MockExtRedisBackend > > OldbCreationResult
Definition inMemoryOldb.hpp:37